createNewStandardTransactionCode()

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:

  • ACH

  • CHECK

  • CREDIT

  • CREDIT_OR_DEBIT

  • DEBIT

  • DEPOSIT

  • FEE

  • INTEREST

  • PAYMENT

  • TRANSFER

  • OTHER

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:

  • CREDIT

  • DEBIT

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'
}); 

        

Related Topics

Financial Institution Parser Plug-in Interface Definition
getStandardTransactionCodes()

General Notices