Share via


InventCostBeginningAmounts::getBeginningAmounts Method [AX 2012]

Gets the beginning amounts for a given item and date.

Syntax

server protected static InventCostAmountHandler getBeginningAmounts(
    ItemId _itemId, 
    InventDimId _inventDimId, 
    InventSiteId _inventSiteId, 
    InventClosing _inventClosing, 
   [InventCostTransSum _inventCostTransSum])

Run On

Server

Parameters

Return Value

Type: InventCostAmountHandler Class
The beginning amounts for the given item and date.

Remarks

The inventory closing record prior to the given date is used to get the relevant InventCostTransSum value.

The quantities in InventCostTransSum are distributed according to the cost group rollup that is activated on the date the InventCostTransSum record was written. After the InventCostTransSum amounts and quantities have been found and calculated, the InventCostTrans records between the date of the InventCostTransSum record and the given fromDate are found and added to the amounts.

See Also

Reference

InventCostBeginningAmounts Class