PdsCatchWeightOnHandAdjustment.increaseQuantityIfNeeded Method [AX 2012]

Increases the on-hand quantity, if adjustment is required.

public void increaseQuantityIfNeeded(
    InventOnHandQty _inventOnHandQty, 
    InventQty _qty, 
    PdsCWInventQty _cwQty, 
    InventDimId _adjustmentDimId)

Run On

Called

Parameters

_inventOnHandQty
Type: InventOnHandQty Class
Provides on-hand data to determine whether adjustment is required.
_qty
Type: InventQty Extended Data Type
The additional inventory quantity of the related inventory update.
_cwQty
Type: PdsCWInventQty Extended Data Type
The additional catch weight quantity of the related inventory update.
_adjustmentDimId
Type: InventDimId Extended Data Type
The ID of the inventory dimension for which to adjust the quantity.

The adjustment is done if both the following conditions are met:

  • The catch weight quantity of the additional transaction does not exceed the on-hand availability.

  • The quantity of the additional transaction exceeds the on-hand availability (and keeps the remaining catch weight units within their minimum inventory quantities).

Community Additions

ADD
Show: