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:
-
If the Using Reversing Journals preference is disabled, a direct void is performed.
-
If the Using Reversing Journals preference is enabled, a void by reversing journal is performed.
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 |
number |
Client and server scripts |
Voids a transaction record. |
|
number |
Client and server scripts |
Voids a transaction record asynchronously. |
||
Enum |
enum |
Client and server scripts |
Holds the string values for supported record types. |