Skip to main content

MGCLatticeInventoryCostService.activatePendingPrices

Activates the pending prices of a costing version: the new standard costs (and, when requested, pending purchase and sales prices) become the active prices, and on-hand inventory of a standard cost item is revalued at its new cost. Runs the standard activation (InventItemPriceActivationJob) in one transaction, so either every eligible pending price is activated or, when one fails, none is.

  • HTTP method: POST
  • Route: /api/services/MGCLatticeInventoryServiceGroup/MGCLatticeInventoryCostService/activatePendingPrices
  • Service class: MGCLatticeInventoryCostService

Parameters​

NameTypeOptionalDescription
_requestMGCLatticePendingPriceActivationRequestContractNoThe request containing CostingVersionId, the price types, optional ItemIds, and standard header fields.

Returns​

MGCLatticeOrderOperationResponseContract

An MGCLatticeOrderOperationResponseContract: DocumentId is the costing version, PostedDocumentId the voucher of the inventory revaluation (empty when no on-hand inventory was revalued), and the message names the items whose price was activated.

Security​

  • Requires privilege MGCLatticeInventoryCostActivateMaintain