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] Report 4810 "Intrastat Report Get Lines" IsHandled should be modified #27895

Open
bachii1010 opened this issue Jan 8, 2025 · 0 comments

Comments

@bachii1010
Copy link

Describe the request

Before Update

IsHandled := false;
OnBeforeInsertJobLedgerLine(IntrastatReportLine, "Jo Ledger Entry", IsHandled);
if not IsHandled then
InstrastatReportLine.Insert();

IntrastatReportLine."Record ID Filter" := Format(IntrastatReportLine.RecordId);
IntrastatReportLine.Modify();

After Update
IsHandled := false;
OnBeforeInsertJobLedgerLine(IntrastatReportLine, "Jo Ledger Entry", IsHandled);
if IsHandled then
exit;

InstrastatReportLine.Insert();

IntrastatReportLine."Record ID Filter" := Format(IntrastatReportLine.RecordId);
IntrastatReportLine.Modify();

Additional context

This changes is needed because if we are skipping insert then we are getting error for modify. So the Ishandled should be applied for both iinsert and modify.

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