InventUpd_Financial::whsNewInventWHSWork Method [AX 2012]
Creates and returns a new instance of InventUpd_Financial class that will be used each time a Work quantity is moved.
Syntax
server public static InventUpd_Financial whsNewInventWHSWork(
InventMovement _movement,
LedgerVoucher _ledgerVoucher,
CostAmount _costAmount,
InventQty _qty,
[InventCostOnhandCache _inventCostOnhandCache])
Run On
Server
Parameters
- _movement
Type: InventMovement Class
The inventory movement for the financial update.
- _ledgerVoucher
Type: LedgerVoucher Class
The LedgerVoucher object to which the postings must be added.
- _costAmount
Type: CostAmount Extended Data Type
Cost amount for financial update
- _qty
Type: InventQty Extended Data Type
Transaction quantity.
- _inventCostOnhandCache
Type: InventCostOnhandCache Class
An instance of the onhand cache; optional.
Return Value
Type: InventUpd_Financial Class
A newly created instance of InventUpd_Financial class