ReqCalc.actionFindFirstReceiptForCoverage Method [AX 2012]
Finds the first receipt that may be used for coverage.
Syntax
private int actionFindFirstReceiptForCoverage(
int _indexFirstSearchReceipt,
int _countReceipts,
Array _receiptsArray,
date _searchFrom,
InventQty _highestQty,
Map _accumulatedActionQtyMap,
ReqSetupDim _setupDim,
boolean _includePlannedOrders)
Run On
Called
Parameters
- _indexFirstSearchReceipt
Type: int
The index of the first candidate to investigate.
- _countReceipts
Type: int
The index of the last candidate to investigate.
- _receiptsArray
Type: Array Class
An array of the ReqTrans table candidate receipts.
- _searchFrom
Type: date
The earliest date of a valid receipt.
- _highestQty
Type: InventQty Extended Data Type
The maximum amount a receipt may be loaded.
- _accumulatedActionQtyMap
Type: Map Class
A map that contains the action quantities that are already allocated.
- _setupDim
Type: ReqSetupDim Class
A ReqSetupDim object that specified the item and dimension for which the action messages are processed.
- _includePlannedOrders
Type: boolean
A Boolean value that indicates whether to include planned orders.
Return Value
Type: int
The index of the first receipt that may be used for coverage.