MGCLatticeInventoryCostService.calculateItemCosts
Calculates item costs in a costing version, as the costing version's Calculation does: the standard item cost calculation (BOMCalcJob_All) rolls up each item's BOM and route costs (or, for an item procured by purchase when the version calculates those, its purchase price) and records the result as the item's pending cost price in the version, dated the calculation date. Nothing is activated or posted: activatePendingPrices makes the calculated prices active.
- HTTP method:
POST - Route:
/api/services/MGCLatticeInventoryServiceGroup/MGCLatticeInventoryCostService/calculateItemCosts - Service class:
MGCLatticeInventoryCostService
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeItemCostCalculationRequestContract | No | The request containing CostingVersionId, SiteId, CalculationDate, optional ItemIds, and standard header fields. |
Returns
MGCLatticeOrderOperationResponseContract
An MGCLatticeOrderOperationResponseContract: DocumentId is the costing version, PostedDocumentId the calculation number (the BOM calculation the pending price refers to) of the first calculated item in item number order, and the message counts the pending prices calculated and names their items.
Security
- Requires privilege
MGCLatticeInventoryCostCalculateMaintain