code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#11657 Fix VIES integrity check: tolerate country-code prefix on echoed VAT number (uptake fix)

The VIES integrity check for VAT numbers now tolerates country-code prefixes in echoed responses, normalizing both sides before comparison to prevent false rejection of valid VAT numbers during registration.

Pull request · merged into main (BC30) on 2026-09-21 by dcenic · 1 file (+18 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Fixed a regression where VIES responses that echo the VAT number with its country-code prefix were wrongly rejected as mismatches
  • Both the request and response numbers are stripped of the prefix before the integrity check compares them
  • Removes the hard block on saving a VAT Registration No., because the check runs in its OnValidate
  • Numbers or countries that really differ are still rejected
  • Fixes 10 failing tests in codeunit 134192, which run only in NAV uptake with a mock service
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#650565
  • Labels: Ownership: Manual, Team: Finance
  • Systems: finance

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