Share via


inventCostProdCancel::newFromParameter Method [AX 2012]

Initializes a new instance of the inventCostProdCancel class.

Syntax

client server protected static inventCostProdCancel newFromParameter(
    ProdTable _prodTable, 
    boolean _recalc, 
    Voucher _cancelVoucher, 
    TransDate _cancelTransDate, 
    Voucher _newVoucher, 
    TransDate _newTransDate)

Run On

Called

Parameters

  • _prodTable
    Type: ProdTable Table
    The production table for which the adjustments should be canceled.
  • _recalc
    Type: boolean
    A Boolean value that indicates whether the production orders should be recalculated.

Return Value

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

Exceptions

Exception Condition
Error

No production order, voucher that should be canceled, or voucher that should be used to do the postings is given.

Error

No production order, voucher that should be canceled, or voucher that should be used to do the postings is given.

See Also

Reference

inventCostProdCancel Class