KVSPSAKFWSalesInvoiceExtension#
Events#
KVSPSAOnBeforePrintAttachment(Code[20], Record Sales Invoice Header, Boolean) :#
Summary: Integration event raised before printing attachments for a sales invoice. Allows subscribers to handle attachment printing logic or prevent default behavior.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforePrintAttachment(var SalesInvoiceHeaderNo: Code[20]; var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::ReportExtension, ReportExtension::"KVSPSAKFWSalesInvoiceExtension", 'KVSPSAOnBeforePrintAttachment', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforePrintAttachment(var SalesInvoiceHeaderNo: Code[20]; var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesInvoiceHeaderNo: The document number of the sales invoice.SalesInvoiceHeader: The sales invoice header record.IsHandled: Set to true if the attachment printing is handled by a subscriber.