---
id: change/bcapps/10169
type: change
title: "#10169 [Extensibility Request] issue 30081: add VAT registration number override event"
summary: An integration event allows extensions to override VAT registration number formatting in Intrastat reports before standard concatenation logic runs.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit intrastatreportmanagement
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:00.529Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ad3d7637c4506793a0292ee03dbd5831353d5051
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10169
    title: "microsoft/BCApps#10169: [Extensibility Request] issue 30081: add VAT registration number override event"
    date: "2026-08-14"
    commit: ad3d7637c4506793a0292ee03dbd5831353d5051
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/4810
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10169
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10169
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-14T12:09:50Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
  - event-request
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 1
  additions: 12
  deletions: 1
  al: 1
apps:
  - Intrastat
objects_touched:
  - key: codeunit/4810
    page: codeunit/4810
    type: codeunit
    id: 4810
    name: IntrastatReportManagement
    app: Intrastat
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 635857
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10169 [Extensibility Request] issue 30081: add VAT registration number override event

> An integration event allows extensions to override VAT registration number formatting in Intrastat reports before standard concatenation logic runs.

[Pull request](https://github.com/microsoft/BCApps/pull/10169) · merged into `main` (BC30) on 2026-08-14 by AleksandricMarko · 1 file (+12 -1), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New OnBeforeGetVATRegNo integration event in GetVATRegNo of IntrastatReportManagement
- Subscribers can return their own VAT registration number and set IsHandled to skip the standard concatenation
- Lets extensions avoid invalid partner VAT IDs when the stored number already includes the country prefix

## AL objects touched

- [Codeunit 4810 "IntrastatReportManagement"](../../objects/codeunit/4810.md), Intrastat: modified

## Context

- Work items: AB#635857
- Labels: AL: Apps (W1), Team: Finance, event-request
- Systems: development

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