InventCostCancel::newFromParameter Method [AX 2012]
Initializes a new instance of the InventCostCancel class.
Syntax
client server protected static InventCostCancel newFromParameter(
InventTransRefId _transRefId,
Voucher _cancelVoucher,
TransDate _cancelTransDate,
Voucher _newVoucher,
TransDate _newTransDate)
Run On
Called
Parameters
- _transRefId
Type: InventTransRefId Extended Data Type
The transaction reference for which the variances should be canceled.
- _cancelVoucher
Type: Voucher Extended Data Type
The voucher for which the variances should be canceled.
- _cancelTransDate
Type: TransDate Extended Data Type
The transaction date for which the variances should be canceled.
- _newVoucher
Type: Voucher Extended Data Type
The voucher to which the canceled adjustments should be attached.
- _newTransDate
Type: TransDate Extended Data Type
The transaction date that should be used to cancel the adjustments.
Return Value
Type: InventCostCancel Class
An initialized instance of the InventCostCancel class.
Exceptions
Exception | Condition |
---|---|
Error | There is no transaction reference. |
Error | There is no transaction reference. |