N/manufacturing/productionCharges Module
Use the N/manufacturing/productionCharges module to update unit costs of manufacturing charges on Assembly Build, Work Order Close, Work Order Completion transactions.
The module is only usable in server-side SuiteScript 2.1 scripts.
You can use productionCharges.updateChargesToCustomUnitCost(options) method to update cost on a specific transaction line to a specified unit cost.
You can use productionCharges.updateChargesToItemPurchasePrice(options) method to update cost on a specific transaction line to a specified unit cost.
You can use productionCharges.updateAllChargesToItemPurchasePrice(options) method to update cost on all routing and non-inventory transaction lines on a specified transaction to the current price.
Prerequisites
-
Assembly Items feature must be enabled (for more information, see Enabling Assembly Items)
-
Allow bulk cost updates for Production Charges preference must be enabled
-
The user must have at least Edit permission for the following transactions:
-
with Manufacturing Work In Process feature DISABLED: Build Assemblies
-
with Manufacturing Work In Process feature ENABLED: Build Assemblies, Work Order Completion, Work Order Issue
-
-
Transactions modified by this module must be:
-
of type Assembly Build, Work Order Completion, Work Order Issue
-
in an open posting period
-
Cost changes made using this module do not trigger other SuiteScript scripts.
In This Help Topic
N/manufacturing/productionCharges Module Members
|
Member Type |
Name |
Return Type / Value Type |
Supported Script Types |
Description |
|---|---|---|---|---|
|
Method |
void |
Server scripts |
Updates cost on a specific transaction line to a specified unit cost. |
|
|
void |
Server scripts |
Updates cost on a specific transaction line according to the current purchase price of the originating item. |
||
|
productionCharges.updateAllChargesToItemPurchasePrice(options) |
void |
Server scripts |
Updates cost on all routing and non-inventory transaction lines on a specified transaction to the current price. |