Skip to content

[Master]-When Intrastat line is added manually the "Intrastat Country/Region Code" is not automatically populated after adding the "Country/Region Code" - #10222

Draft
neeleshsinghal wants to merge 2 commits into
mainfrom
bugs/Bug-646599-Intrastat-lines-added-manually-Intrastat-Country-Region-Code-Not
Draft

[Master]-When Intrastat line is added manually the "Intrastat Country/Region Code" is not automatically populated after adding the "Country/Region Code"#10222
neeleshsinghal wants to merge 2 commits into
mainfrom
bugs/Bug-646599-Intrastat-lines-added-manually-Intrastat-Country-Region-Code-Not

Conversation

@neeleshsinghal

@neeleshsinghal neeleshsinghal commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Fixes AB#646599

@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 SCM GitHub request for SCM area labels Aug 13, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Aug 13, 2026
@neeleshsinghal
neeleshsinghal requested a lite review from Copilot August 13, 2026 06:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses AB#646599 by ensuring that when an Intrastat report line is added manually, validating Country/Region Code automatically populates Intrastat Country/Region Code using the country/region’s Intrastat Code logic.

Changes:

  • Added an OnValidate trigger on Intrastat Report Line"."Country/Region Code" to derive and set Intrastat Country/Region Code.
  • Added a new test validating the manual-line behavior for Intrastat code inheritance.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/Apps/W1/Intrastat/app/src/IntrastatReport/IntrastatReportLine.Table.al Adds field validation logic to auto-populate Intrastat Country/Region Code when Country/Region Code is validated.
src/Apps/W1/Intrastat/test/src/IntrastatReportTest.Codeunit.al Adds a regression test covering manual Intrastat report line population behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Apps/W1/Intrastat/test/src/IntrastatReportTest.Codeunit.al
Comment thread src/Apps/W1/Intrastat/app/src/IntrastatReport/IntrastatReportLine.Table.al Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 SCM GitHub request for SCM area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants