InventCostProdIndirect::newFromLedgerVoucher Method [AX 2012]
Creates an instance of the InventCostProdIndirect class and initializes it with a LedgerVoucher object.
Syntax
client server public static InventCostProdIndirect newFromLedgerVoucher(LedgerVoucher _ledgerVoucher)
Run On
Called
Parameters
- _ledgerVoucher
Type: LedgerVoucher Class
The instance of the LedgerVoucher class.
Return Value
Type: InventCostProdIndirect Class
An initialized instance of the InventCostProdIndirect class.
Exceptions
Exception | Condition |
---|---|
Error | The LedgerVoucher object was not specified. |