ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

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

Open ekesteloot opened this issue 7 years ago • 0 comments

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

Integration Event Definition:

[IntegrationEvent(false, false)]
local procedure OnAfterPrepareSales(var DeferralPostingBuffer: Record "Deferral Posting Buffer"; SalesLine: Record "Sales Line")
begin
end;

Invocation in PrepareSales function:

        "Deferral Code" := SalesLine."Deferral Code";
        "Deferral Doc. Type" := DeferralUtilities.GetSalesDeferralDocType;
        "Document No." := DocumentNo;
======> OnAfterPrepareSales(Rec,SalesLine);
    end;

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

ekesteloot avatar Nov 20 '19 04:11 ekesteloot