Share via


inventCostProdCancel::newFromProdIdLedgerVoucher Method [AX 2012]

Initializes a new instance of the inventCostProdCancel class.

Syntax

client server private static inventCostProdCancel newFromProdIdLedgerVoucher(
    ProdId _prodId, 
    boolean _recalc, 
    LedgerVoucher _ledgerVoucher, 
    Voucher _cancelVoucher, 
    TransDate _cancelTransDate)

Run On

Called

Parameters

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

Return Value

Type: inventCostProdCancel Class
An initialized instance of the inventCostProdCancel class.

Exceptions

Exception Condition
Error

No ledger voucher is given.

See Also

Reference

inventCostProdCancel Class