Please include sender in the function OnPreReportOnBeforeCopyPurchaseDoc:

[IntegrationEvent(true, false)]
local procedure OnPreReportOnBeforeCopyPurchaseDoc(var CopyDocumentMgt: Codeunit "Copy Document Mgt."; UseRequestPage: Boolean; IncludeHeader: Boolean; RecalculateLines: Boolean)
begin
end;
0
© 2022 pullanswer.com - All rights reserved.