---
id: change/bcapps/14070
type: change
title: '#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.'
summary: 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.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - table sales header
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-11-22T00:57:41.641Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 78cc08d4d442b9f77bf081ce43ef71e8eba1bfd5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14070
    title: 'microsoft/BCApps#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.'
    date: "2026-11-18"
    commit: 78cc08d4d442b9f77bf081ce43ef71e8eba1bfd5
    t: null
    quote: The field now passes a copy of the customer (CustomerToValidate) with the number entered on the document set.
links:
  learn: []
  objects:
    - object/table/36
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/finance-how-validate-vat-registration-number
      title: Validate VAT Registration Numbers
      label: possibly related
      why: Documents VAT registration number validation for customers and sales documents.
      by: model
number: 14070
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14070
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-11-18T10:22:35Z"
author: sanjmaurya
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 19
  additions: 524
  deletions: 36
  al: 15
apps:
  - Base Application
objects_touched:
  - key: table/36
    page: table/36
    type: table
    id: 36
    name: Sales Header
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/CZ/BaseApp/Sales/Document/SalesHeader.Table.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/FI/BaseApp/Sales/Document/SalesHeader.Table.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/GB/BaseApp/Sales/Document/SalesHeader.Table.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 658801
systems:
  - sales
quote: The field now passes a copy of the customer (CustomerToValidate) with the number entered on the document set.
joined_against:
  major: "29"
  commit: 4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679
---

# #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](https://github.com/microsoft/BCApps/pull/14070) · 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"](../../objects/table/36.md), 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."

## Possibly related

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

- [Validate VAT Registration Numbers](https://learn.microsoft.com/dynamics365/business-central/finance-how-validate-vat-registration-number) — possibly related: Documents VAT registration number validation for customers and sales documents. (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).
