N/transaction Module

Use the N/transaction module to void transactions.

When you void a transaction, the total and all the line items for the transaction are set to zero. The transaction is not removed from the system. NetSuite supports two types of voids: direct voids and voids by reversing journal. For additional information, see Voiding, Deleting, or Closing Transactions.

The type of void performed with your script depends on the targeted account’s preference settings:

Important:

After you successfully void a transaction, you can no longer make changes to the transaction that impact the general ledger.

                                   

In This Help Topic

N/transaction Module Members

Member Type

Name

Return Type / Value Type

Supported Script Types

Description

Method

transaction.void(options)

number

Client and server scripts

Voids a transaction record.

transaction.void.promise(options)

number

Client and server scripts

Voids a transaction record asynchronously.

Enum

transaction.Type

enum

Client and server scripts

Holds the string values for supported record types.

Related Topics

SuiteScript 2.x Modules
SuiteScript 2.x

General Notices