Share via


InventCostProdAdjust::newFromLedgerVoucher Method [AX 2012]

Initializes a new instance of this class based on a ledger voucher.

Syntax

client server public static InventCostProdAdjust newFromLedgerVoucher(
    InventTransAdjustDataMap _inventTransAdjustDataMap, 
    boolean _recalc, 
    LedgerVoucher _ledgerVoucher)

Run On

Called

Parameters

  • _recalc
    Type: boolean
    A Boolean value that indicates whether the production order should be recalculated.
  • _ledgerVoucher
    Type: LedgerVoucher Class
    The ledger voucher to which the postings should be added.

Return Value

Type: InventCostProdAdjust Class
An initialized instance of the class.

Exceptions

Exception Condition
Error

No ledgerVoucher is passed.

Error

No ledgerVoucher is passed.

See Also

Reference

InventCostProdAdjust Class