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
- _prodId
Type: ProdId Extended Data Type
The production ID for which the adjustments should be canceled.
- _recalc
Type: boolean
A Boolean value that indicates whether the production orders should be recalculated.
- _cancelVoucher
Type: Voucher Extended Data Type
The voucher for which the adjustments should be canceled.
- _cancelTransDate
Type: TransDate Extended Data Type
The transaction date for which the adjustments should be canceled.
- _newVoucher
Type: Voucher Extended Data Type
The voucher that should be used to post the canceled adjustments.
- _newTransDate
Type: TransDate Extended Data Type
The transaction date that should be used to post the canceled adjustments.
- _updateBreakdown
Type: boolean
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. |