Share via


InventCostProdIndirect::newFromInventCostProdAdjust Method [AX 2012]

Initializes a new instance of this class for a given InventCostProdAdjust instance.

Syntax

client server public static InventCostProdIndirect newFromInventCostProdAdjust(InventCostProdAdjust _inventCostProdAdjust)

Run On

Called

Parameters

  • _inventCostProdAdjust
    Type: InventCostProdAdjust Class
    The InventCostProdAdjust instance that holds the data that is required to initialize this class.

Return Value

Type: InventCostProdIndirect Class
An initialized instance of this class.

Exceptions

Exception Condition
Error

No InventCostProdAdjust class is given.

Error

No InventCostProdAdjust class is given.

Remarks

When no LedgerVoucher instance is passed, the indirect cost will not be added to a ledger voucher. Instead, they will be created and then be posted separately.

See Also

Reference

InventCostProdIndirect Class