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

#14070 [29.x][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.

Sales Header VAT Registration No. validation now checks the number entered on the document instead of the customer card number, allowing verification of different numbers.

Pull request · merged into releases/29.x (BC29) on 2026-11-18 by sanjmaurya · 19 files (+524 -36), 15 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Passes a copy of the customer record with the entered VAT number to validation instead of the original customer card
  • Preserves the existing rule that only fills a blank customer VAT number automatically
  • Allows verification of VAT numbers different from those on the customer card
  • Fixes error when customer card has no VAT number but document entry requires validation
  • Includes regression test ValidateHeaderVATRegistrationNoChecksEnteredNumberWhenCustomerHasNone
  • 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 BC29 snapshot
  • src/Layers/FI/BaseApp/Sales/Document/SalesHeader.Table.al: modified, not in the BC29 snapshot
  • src/Layers/GB/BaseApp/Sales/Document/SalesHeader.Table.al: modified, not in the BC29 snapshot

Context

  • Work items: AB#658801
  • 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.

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