code change · fixSales & Receivablesofficial - Microsoftreviewed - checked by Opus

#13987 [Main][All-e]"Specify the VAT registration number that you want to verify" error when entering a VAT Registration No. in the Sales Order if the Customer Card has no VAT Registration No

Fixed a VAT registration number validation error in Sales Orders where the system incorrectly validated the customer's stored VAT number instead of the number entered on the document when the customer card had no VAT number and the VIES validation service was enabled.

Pull request · merged into main (BC30) on 2026-11-17 by sanjmaurya · 19 files (+524 -35), 15 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Sales Header VAT Registration No. field now passes a copy of the customer record with the entered number instead of the actual customer record for VIES validation
  • Preserves the existing behavior of only filling a blank customer VAT number, preventing unintended overwrites
  • Added comprehensive test cases to verify the validation checks the entered number when the customer has no VAT number
  • Fix applied across all localization layers (W1, NA, GB, FR, ES, IT, etc.)
  • Resolves error ‘Specify the VAT registration number that you want to verify’ when entering valid VAT numbers on sales documents
  • Behaviour changes for users or extensions.

AL objects touched

  • Table 36 “Sales Header”, Base Application: modified
  • src/Layers/CZ/BaseApp/Sales/Document/SalesHeader.Table.al: modified, not in the BC30 snapshot
  • src/Layers/FI/BaseApp/Sales/Document/SalesHeader.Table.al: modified, not in the BC30 snapshot
  • src/Layers/GB/BaseApp/Sales/Document/SalesHeader.Table.al: modified, not in the BC30 snapshot

Context

  • Work items: AB#658933
  • Labels: Team: SCM
  • Systems: sales
  • From the description: “the field now passes a copy of the customer (CustomerToValidate) with the number entered on the document set”

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

  • Use Multiple Customer VAT Registration Numbers — possibly related: Documents multiple VAT registration numbers setup for customers across regions, relevant to VAT number management on customer cards. (model-linked)
  • Validate VAT Registration Numbers — possibly related: Validates VAT registration numbers for customers using VIES service integration, directly addressing the VAT number error scenario. (model-linked)

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