SalesAgreementGenerateReleaseOrder::adjustRquestedDatesWithAgreemenLine Method [AX 2012]

Adjusts the ReceiptDateRequested field and the ShippingDateRequeseted field with the AgreementLine validity period.

client server private static void adjustRquestedDatesWithAgreemenLine(SalesCreateReleaseOrderLineTmp _releaseOrderLine, AgreementLineQuantityCommitment _agreementLine)

Run On

Called

Parameters

_releaseOrderLine
Type: SalesCreateReleaseOrderLineTmp Table
The SalesCreateReleaseOrderLineTmp buffer in which date fields should be aligned with the AgreementLine validity period.
_agreementLine
Type: AgreementLineQuantityCommitment Table
The AgreementLine buffer to align with.

If the ShippingDateRequested and ReceiptDateRequested fields are initialized to be before the EffectiveDate field of the AgreementLine record, they are set to the value of the EffectiveDate field of the AgreementLine record. If the ShippingDateRequested and ReceiptDateRequested fields are initialized to be after the ExpirationDate field of the AgreementLine record, they are set to be the latest date out of the following two: the current date (in terms of the site, or the company if the site is not set) or the expiration date of the AgreementLine record.

Show: