Skip to content

Event request [W1][Codeunit][816]["Purch. Post Invoice"] OnSplitFAOnBeforeGenJnlPostLine event #29861

Description

@Katarina-BS

Why do you need this change?

We have additional amounts in the "Gen. Journal Line" table that need to be divided when creating multiple FA cards on a purchase invoice.

Describe the request

We suggest new event OnSplitFAOnBeforeGenJnlPostLine in the SplitFA procedure.

...
        CalcSplitAmount(
            GenJnlLine."VAT Difference", GenJnlLine2."VAT Difference", TotalGenJnlLine."VAT Difference", I, SplitNo);
        CalcSplitAmount(
            GenJnlLine."Salvage Value", GenJnlLine2."Salvage Value", TotalGenJnlLine."Salvage Value", I, SplitNo);

        //new integration event
        OnSplitFAOnBeforeGenJnlPostLine(GenJnlLine, GenJnlLine2, TotalGenJnlLine, I, SplitNo);

        RunGenJnlPostLine(GenJnlLine, GenJnlPostLine);
    end;
end;
...
[IntegrationEvent(false, false)]
local procedure OnSplitFAOnBeforeGenJnlPostLine(var GenJnlLine: Record "Gen. Journal Line"; var GenJnlLine2: Record "Gen. Journal Line"; var TotalGenJnlLine: Record "Gen. Journal Line"; I: Integer; SplitNo: Integer)
begin
end;

Internal work item: AB#626298

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

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions