createNewStandardTransactionCode()
|
Function Declaration |
|
|
Type |
Object function |
|
Description |
Create a new StandardTransactionCode object for the plug-in to set property values. |
|
Returns |
void |
options is a JavaScript object with the following input parameters:
|
Parameter |
Type |
Required |
Description |
Since |
|---|---|---|---|---|
|
transactionCode |
String |
Yes |
The raw transaction code from the parsed transaction. |
2020.2 |
|
transactionType |
String |
Yes |
The bank data type in NetSuite to which the code maps, which can be one of the following:
|
2020.2 |
|
creditDebit |
String |
No |
Used by BAI2 or a similar file format to determine whether the amount should be positive or negative. This parameter can be one of the following:
|
2020.2 |
|
description |
String |
No |
A description of the kind of transaction that the transaction code represents. |
2020.2 |
Example
var code = context.createNewStandardTransactionCode({
transactionCode: 'P',
transactionType: 'PAYMENT',
creditDebit: 'DEBIT',
description: 'Payment'
});