Skip to content

[Event Request] Codeunit "Sales Post Invoice Events" Publishers "RunOnBeforePostLines" and "OnBeforePostLines": add new Parameter InvoicePostingParameters #11536

Description

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)

  • I will provide the implementation for this extensibility request

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions