Please include sender in the function OnPreReportOnBeforeCopySalesDoc:

[IntegrationEvent(true, false)]
local procedure OnPreReportOnBeforeCopySalesDoc(var CopyDocumentMgt: Codeunit "Copy Document Mgt."; DocType: Integer; DocNo: Code[20]; SalesHeader: Record "Sales Header"; CurrReportUseRequestPage: Boolean; IncludeHeader: Boolean; RecalculateLines: Boolean; ExactCostReversingMandatory: Boolean)
begin
end;
0
© 2022 pullanswer.com - All rights reserved.