---
id: change/bcapps/9450
type: change
title: "#9450 [Extensibility Request] issue 30290: Add OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader event"
summary: A new integration event OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader is added to the Sales Header table to allow extensions to override or skip the standard VAT registration update logic when the bill-to customer changes.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - table sales header
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:27.500Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 542eea9b79f17d0efd70643d29142949bd56c2d5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9450
    title: "microsoft/BCApps#9450: [Extensibility Request] issue 30290: Add OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader event"
    date: "2026-07-24"
    commit: 542eea9b79f17d0efd70643d29142949bd56c2d5
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/36
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9450
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9450
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-24T07:38:56Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
  - event-request
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 15
  additions: 225
  deletions: 15
  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:
  - 641535
systems:
  - sales
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #9450 [Extensibility Request] issue 30290: Add OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader event

> A new integration event OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader is added to the Sales Header table to allow extensions to override or skip the standard VAT registration update logic when the bill-to customer changes.

[Pull request](https://github.com/microsoft/BCApps/pull/9450) · merged into `main` (BC30) on 2026-07-24 by AleksandricMarko · 15 files (+225 -15), 15 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New IntegrationEvent added before AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader call
- Event has IsHandled parameter that allows subscribers to prevent standard logic execution
- Change applied consistently across all localization layers (W1, NA, BE, CH, CZ, ES, FI, FR, GB, IT, NL, NO, RU, SE, APAC)
- Enables extensions to implement custom VAT registration and posting group assignment without conflicts
- Maintains backward compatibility as event is optional

## 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 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#641535
- Labels: Team: SCM, event-request
- Systems: sales

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