code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#13403 Bug 657097: [master] Suggest Lines fails with a duplicate ECSL VAT Report Line Relation record in GB environment

Fixed EC Sales List Suggest Lines in GB environment to process each VAT entry only once, preventing duplicate VAT Report Line Relation records and incorrect report totals.

Pull request · merged into main (BC30) on 2026-10-30 by AleksanderGladkov · 2 files (+266 -3), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • VAT entries appearing in multiple query rows were being processed repeatedly
  • Duplicate ECSL VAT Report Line Relation records are now prevented
  • Report totals and VAT-entry relations are generated correctly
  • Fix includes regression tests covering group rounding and rejected/accepted prior reports
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #13404 into releases/29.x on 2026-10-30

Context

  • Work items: AB#657097
  • Labels: Team: Finance
  • Systems: finance
  • From the description: “Process each VAT entry once so report totals and VAT-entry relations are not duplicated.”

No source states these links: they share an object, a model read them, or a person found the same subject.

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).