code change · fixInventoryofficial - Microsoftreviewed - checked by Opus

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

The Intrastat Country/Region Code field now automatically populates when users manually enter a Country/Region Code on an Intrastat Report line, matching the behavior when lines are suggested.

Pull request · merged into main (BC30) on 2026-08-27 by neeleshsinghal · 2 files (+44 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Added OnValidate trigger to Country/Region Code field on Intrastat Report Line table
  • Derives Intrastat Country/Region Code automatically when a Country/Region Code is entered
  • Ensures manual line creation populates the Intrastat code field like the Suggest Lines feature
  • Resolves inconsistent behavior between manual entry and suggested lines
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#646599
  • Labels: AL: Apps (W1), Team: Finance
  • Systems: inventory
  • From the description: “When an Intrastat Report line is added manually, the Intrastat Country/Region Code stays blank after the user enters the Country/Region Code.”

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).