SalesQuantity_Confirm.pdsCWCalcQtyInvent Method [AX 2012]

Calculates catch weight quantity when posting.

protected container pdsCWCalcQtyInvent(
    Common _common, 
   [SalesUpdate _specQty, 
    PdsCWInventQty _qty, 
    boolean _creditRemaining, 
    boolean _calcRemaining])

Run On



Type: Common Table
The transaction record.
Type: SalesUpdate Enumeration
The quantity spec to process.
Type: PdsCWInventQty Extended Data Type
The catch weight quantity.
Type: boolean
A Boolean value indicating if the remaining quantity is to be credited.
Type: boolean
A Boolean value indicating whether the remaining quantities should be calculated.

Return Value

Type: container
The container with catch weight quantities. The container will have the quantities in the following order: qty, remainBefore, remainAfter.