ALAppExtensions
ALAppExtensions copied to clipboard
[EVENT REQUEST] - Codeunit 80 Sales - Post - OnRun
Dear AL Development Team,
In codeunit 80, at OnRun, we need an event here:
OLD CODE:
if not SalesHeader.IsCreditDocType() then begin
ReverseAmount(TotalSalesLine);
ReverseAmount(TotalSalesLineLCY);
TotalSalesLineLCY."Unit Cost (LCY)" := -TotalSalesLineLCY."Unit Cost (LCY)";
end;
PostDropOrderShipment(SalesHeader, TempDropShptPostBuffer);
NEW CODE:
if not SalesHeader.IsCreditDocType() then begin
ReverseAmount(TotalSalesLine);
ReverseAmount(TotalSalesLineLCY);
TotalSalesLineLCY."Unit Cost (LCY)" := -TotalSalesLineLCY."Unit Cost (LCY)";
end;
// Init new code
OnRunOnBeforePostDropOrderShipment(SalesHeader, TotalSalesLine)
// End new code
PostDropOrderShipment(SalesHeader, TempDropShptPostBuffer);
New publisher:
[IntegrationEvent(false, false)]
local procedure OnRunOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line")
begin
end;
Thanks.
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 13411.