Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Change Request] Add "OverrideDimErr" in publisher OnBeforeCheckGenJnlLine, codeunit 12 "Gen. Jnl.-Post Line" #27889

Open
TarasKozachenko opened this issue Jan 7, 2025 · 0 comments

Comments

@TarasKozachenko
Copy link

Describe the request

We would like to ask you to add "OverrideDimErr" in publisher OnBeforeCheckGenJnlLine, codeunit 12 "Gen. Jnl.-Post Line"

Procedure now:

local procedure CheckGenJnlLine(GenJournalLine: Record "Gen. Journal Line"; CheckLine: Boolean)
var
    IsHandled: Boolean;
begin
    IsHandled := false;
    OnBeforeCheckGenJnlLine(GenJournalLine, CheckLine, IsHandled);
    if IsHandled then
        exit;

    if CheckLine then begin
        if OverrideDimErr then
            GenJnlCheckLine.SetOverDimErr();
        OnCheckGenJnlLineOnBeforeRunCheck(GenJournalLine);
        GenJnlCheckLine.RunCheck(GenJournalLine);
    end;
end;

After modification:

>>>>>>>>>>>>
OnBeforeCheckGenJnlLine(GenJournalLine, CheckLine, OverrideDimErr, IsHandled);
<<<<<<<<<<<<

Publisher now:

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckGenJnlLine(GenJnlLine: Record "Gen. Journal Line"; CheckLine: Boolean; var IsHandled: Boolean)
begin
end;

After modification:

[IntegrationEvent(false, false)]
>>>>>>>>>>>>
local procedure OnBeforeCheckGenJnlLine(GenJnlLine: Record "Gen. Journal Line"; CheckLine: Boolean; var OverrideDimErr: Boolean; var IsHandled: Boolean)
<<<<<<<<<<<<
begin
end;

Additional context

To be able to register without control of dimensions in the regularization entry records (Close Income Statement)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant