transaction.void.promise(options)
Method Description |
Voids a transaction record object asynchronously and return an ID that indicates the type of void performed:
The type of void performed depends on the targeted account’s preference settings.
Important:
After you void a transaction, you cannot make changes to the transaction that impact the general ledger.
Note:
The parameters and errors thrown for this method are the same as those for transaction.void(options). For more information about promises, see Promise Object. |
Returns |
|
Synchronous Version |
|
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Since |
2015.2 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete promise script example, see Promise Object.
//Add additional code
...
var voidSalesOrderId = transaction.void.promise({
type: record.Type.SALES_ORDER,
id: salesOrderId
});
...
//Add additional code