InventCostRevaluate::newFromParameter Method [AX 2012]
Initializes a new instance of this class for the given parameters.
Syntax
client server protected static InventCostRevaluate newFromParameter(InventItemPrice _inventItemPrice, LedgerVoucher _ledgerVoucher)
Run On
Called
Parameters
- _inventItemPrice
Type: InventItemPrice Table
The item price that is currently active.
- _ledgerVoucher
Type: LedgerVoucher Class
The ledger voucher that should be used for the postings.
Return Value
Type: InventCostRevaluate Class
An initialized instance of the class.
Exceptions
Exception | Condition |
---|---|
Error | No ledger voucher or inventory item price is given. |
Error | No ledger voucher or inventory item price is given. |