Why do you need this change?
We use this event to write additional entries. The "Document No." and other parameters that were generated for the preview mode is available in the record InvoicePostingParameters.
Describe the request
Please add the new parameter InvoicePostingParameters here in the codeunit "Sales Post Invoice Events" and publisher "RunOnBeforePostLines" and "OnBeforePostLines":
procedure RunOnBeforePostLines(SalesHeader: Record "Sales Header"; var TempInvoicePostingBuffer: Record "Invoice Posting Buffer" temporary; InvoicePostingParameters: Record "Invoice Posting Parameters")
begin
OnBeforePostLines(SalesHeader, TempInvoicePostingBuffer, InvoicePostingParameters);
end;
/// <summary>
/// Raised before posting the invoice lines to the general ledger.
/// </summary>
/// <param name="SalesHeader">The sales header being posted.</param>
/// <param name="TempInvoicePostingBuffer">The temporary invoice posting buffer containing lines to post.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforePostLines(SalesHeader: Record "Sales Header"; var TempInvoicePostingBuffer: Record "Invoice Posting Buffer" temporary; InvoicePostingParameters: Record "Invoice Posting Parameters")
begin
end;
Provide an implementation (optional)
Why do you need this change?
We use this event to write additional entries. The "Document No." and other parameters that were generated for the preview mode is available in the record InvoicePostingParameters.
Describe the request
Please add the new parameter InvoicePostingParameters here in the codeunit "Sales Post Invoice Events" and publisher "RunOnBeforePostLines" and "OnBeforePostLines":
Provide an implementation (optional)