PdsCatchWeight::adjustSplitInventQty Method [AX 2012]

Adjusts the quantity to be split in inventory unit based on original quantities and requested quantities to be split considering catch weight constraints.

client server public static InventQty adjustSplitInventQty(
    ItemId _itemId, 
    PdsCWInventQty _cwOriginalQuantity, 
    InventQty _originalQuantity, 
    PdsCWInventQty _cwRequestedSplitQuantity, 
    InventQty _requestedSplitQuantity)

Run On

Called

Parameters

_itemId
Type: ItemId Extended Data Type
The item ID.
_cwOriginalQuantity
Type: PdsCWInventQty Extended Data Type
The original quantity in catch weight unit.
_originalQuantity
Type: InventQty Extended Data Type
The original quantity in inventory unit.
_cwRequestedSplitQuantity
Type: PdsCWInventQty Extended Data Type
The quantity to split in catch weight unit.
_requestedSplitQuantity
Type: InventQty Extended Data Type
The quantity to split in inventory unit.

Return Value

Type: InventQty Extended Data Type
The quantity to split in inventory unit.

This method adjusts _requestedSplitQuantity quantity in the way that remainder does not fall outside catch weight constraints.

Show: