productionCharges.updateAllChargesToItemPurchasePrice(options)
|
Method Description |
Updates cost on all routing and non-inventory transaction lines on a specified transaction to the current price. |
|
Returns |
void |
|
Supported Script Types |
Server scripts. For more information, see SuiteScript 2.x Script Types. |
|
Governance |
None |
|
Module |
|
|
Since |
2026.1 |
Parameters
|
Parameter |
Type |
Required / Optional |
Description |
|---|---|---|---|
|
|
number |
required |
ID of transaction to be updated. |
Errors
|
Error Code |
Message |
Thrown If |
|---|---|---|
|
|
Invalid number (must be greater than 0) |
The value of |
|
|
Feature 'Assembly Items' must be enabled to use 'N/ |
Assembly Items feature is not enabled. |
|
|
Preference Allow bulk cost updates for Production Charges required for this operation. |
Allow bulk cost updates for Production Charges preference is not enabled. |
|
|
Access denied |
The user does not have at least Edit permission for the following transactions:
For more information, see Setting Permissions. |
|
|
Transaction with ID '{1: transaction ID}' is invalid or has no transaction lines that can be edited through this API |
Transaction does not exist or does not meet the following criteria:
|
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/manufacturing/productionCharges Module Samples.
//Add additional code
...
require(["N/manufacturing/productionCharges"], function(productionCharges){
productionCharges. updateChargesToItemPurchasePrice ({
transactionId: 58,
transactionLineIds: [9]
});
});
...
//Add additional code