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