Share via


inventCostProdCancel::newFromProdIdParameter Method [AX 2012]

Initializes a new instance of the inventCostProdCancel class.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          client server protected static inventCostProdCancel newFromProdIdParameter(
            ProdId _prodId, 
            boolean _recalc, 
            Voucher _cancelVoucher, 
            TransDate _cancelTransDate, 
            Voucher _newVoucher, 
            TransDate _newTransDate, 
           [boolean _updateBreakdown])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server protected static inventCostProdCancel newFromProdIdParameter(
            ProdId _prodId, 
            boolean _recalc, 
            Voucher _cancelVoucher, 
            TransDate _cancelTransDate, 
            Voucher _newVoucher, 
            TransDate _newTransDate)

Run On

Called

Parameters

  • _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.

See Also

Reference

inventCostProdCancel Class