PdsCWValidation_lastBox.lastCWunit Method [AX 2012]
Indicates whether the value of the catch weight quantity field is the 'Last box'.
public boolean lastCWunit(PdsCWQtyFieldPair _fieldPair, boolean _parmUnitSet)
Run On
CalledParameters
- _fieldPair
- Type: PdsCWQtyFieldPair Class
An initialized instance of the PdsCWQtyFieldPair class that defines the standard and catch weight fields for a specified data source.
- _parmUnitSet
- Type: boolean
A Boolean value that indicates whether the catch weight quantity is the field that requires an update; optional.
Return Value
Type: booleantrue if the catch weight quantity is all of the inventory in a specified InventDim buffer and the remaining inventory quantity is in the catch weight quantity range; otherwise, false.
In most cases the catch weight quantity is the value that is changed and the standard quantity field is the value which must be updated.When it is determined that the catch weight quantity is the last material in the inventory dimension and the remaining inventory quantity is in the acceptable range for the specified catch weight quantity, the remaining inventory quantity is placed in the inventqty field and this method will return true.When the catch weight quantity is not the 'Last Box' or when the remaining inventory is outside of the range for the specified catch weight quantity, no update will be performed.
Community Additions
ADD
Show: