ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 1706 (Deferral Posting Buffer): OnAfterPreparePurch

Open ekesteloot opened this issue 7 years ago • 0 comments

Please add a OnAfterPreparePurch integration event to Table 1706 (Deferral Posting Buffer)

Integration Event Definition:

[IntegrationEvent(false, false)]
local procedure OnAfterPreparePurch(var DeferralPostingBuffer: Record "Deferral Posting Buffer"; PurchaseLine: Record "Purchase Line")
begin
end;

Invocation in PreparePurch function:

        "Deferral Code" := PurchLine."Deferral Code";
        "Deferral Doc. Type" := DeferralUtilities.GetPurchDeferralDocType;
        "Document No." := DocumentNo;
======> OnAfterPreparePurch(Rec,PurchLine);
    end;

This will permit us to set some custom fields during this process.

ekesteloot avatar Nov 20 '19 04:11 ekesteloot