PriceDiscAdmCheckPost.checkForOverlapsAndGaps Method [AX 2012]
Determines whether there are overlaps or gaps between the trade agreement lines in the priceDiscAdmTransArrayBuffer and flushes the priceDiscAdmTransArrayBuffer when _priceDiscAdmTrans is not in the same group (does not have the same value on all the fields exist in the JournalRelationIdx index) as the PriceDiscAdmTrans records in the priceDiscAdmTransArrayBuffer. Then, inserts _priceDiscAdmTrans into the priceDiscAdmTransArrayBuffer.
protected void checkForOverlapsAndGaps(PriceDiscAdmTrans _priceDiscAdmTrans)
Run On
CalledParameters
- _priceDiscAdmTrans
- Type: PriceDiscAdmTrans Table
The record that will be put into the priceDiscAdmTransArrayBuffer.
In a single journal validation, all the _priceDiscAdmTrans passed as a parameter of this method should have already been sorted by the ascending order of the index JournalRelationIdx, the field AgreementHeaderExt_RU and QuantityAmountFrom.
Besides, this method should be called with an empty PriceDiscAdmTrans record as the parameter at the end of the journal validation in order to check the remaining records in the priceDiscAdmTransArrayBuffer.