---
id: change/bcapps/9598
type: change
title: "#9598 [main] bug 633618 - Add VAT Statement Calc. Events CZL codeunit and integrate with VAT Statement Calculation CZL"
summary: The local events of the internal codeunit VAT Statement Calculation CZL were moved to a new codeunit, VAT Statement Calc. Events CZL. Other apps can now subscribe to them, including the event that replaces the obsolete OnBeforeOpenPageVATEntryTotaling.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit vat statement calc. events czl
  - codeunit vat statement calculation czl
  - page vat statement preview line czl
  - permissionset cz core pack - objects czl
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:41.867Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: da3271e9fdef3b0969cbe63bf0c5672400840dbc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9598
    title: "microsoft/BCApps#9598: [main] bug 633618 - Add VAT Statement Calc. Events CZL codeunit and integrate with VAT Statement Calculation CZL"
    date: "2026-07-23"
    commit: da3271e9fdef3b0969cbe63bf0c5672400840dbc
    t: null
    quote: Moved local events to separated codeunit "VAT Statement Calc. Events CZL"
links:
  learn: []
  objects:
    - object/codeunit/11775-cz
    - object/codeunit/11723-cz
    - object/page/31136-cz
    - object/permissionset/11732-cz
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9598
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9598
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-23T08:44:40Z"
author: DavidHolusa
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: false
breaking: false
files:
  count: 4
  additions: 55
  deletions: 20
  al: 4
apps:
  - CoreLocalizationPack
objects_touched:
  - key: codeunit/11775
    page: codeunit/11775-cz
    type: codeunit
    id: 11775
    name: VAT Statement Calc. Events CZL
    app: CoreLocalizationPack
    status: added
  - key: codeunit/11723
    page: codeunit/11723-cz
    type: codeunit
    id: 11723
    name: VAT Statement Calculation CZL
    app: CoreLocalizationPack
    status: modified
  - key: page/31136
    page: page/31136-cz
    type: page
    id: 31136
    name: VAT Statement Preview Line CZL
    app: CoreLocalizationPack
    status: modified
  - key: permissionset/11732
    page: permissionset/11732-cz
    type: permissionset
    id: 11732
    name: CZ Core Pack - Objects CZL
    app: CoreLocalizationPack
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 633618
systems:
  - finance
  - development
quote: Moved local events to separated codeunit "VAT Statement Calc. Events CZL"
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #9598 [main] bug 633618 - Add VAT Statement Calc. Events CZL codeunit and integrate with VAT Statement Calculation CZL

> The local events of the internal codeunit VAT Statement Calculation CZL were moved to a new codeunit, VAT Statement Calc. Events CZL. Other apps can now subscribe to them, including the event that replaces the obsolete OnBeforeOpenPageVATEntryTotaling.

[Pull request](https://github.com/microsoft/BCApps/pull/9598) · merged into `main` (BC30) on 2026-07-23 by DavidHolusa · 4 files (+55 -20), 4 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- New codeunit 11775 VAT Statement Calc. Events CZL holds the VAT statement calculation events
- Events moved out of the internal VAT Statement Calculation CZL codeunit
- Lets extensions use the replacement for the obsolete OnBeforeOpenPageVATEntryTotaling event
- VAT Statement Preview Line CZL page and the CZ Core Pack permission set updated

## AL objects touched

- [Codeunit 11775 "VAT Statement Calc. Events CZL"](../../objects/codeunit/11775-cz.md), CoreLocalizationPack (CZ layer): added
- [Codeunit 11723 "VAT Statement Calculation CZL"](../../objects/codeunit/11723-cz.md), CoreLocalizationPack (CZ layer): modified
- [Page 31136 "VAT Statement Preview Line CZL"](../../objects/page/31136-cz.md), CoreLocalizationPack (CZ layer): modified
- [Permission set 11732 "CZ Core Pack - Objects CZL"](../../objects/permissionset/11732-cz.md), CoreLocalizationPack (CZ layer): modified

## Context

- Work items: AB#633618
- Labels: Team: Finance
- Systems: finance, development
- From the description: "Moved local events to separated codeunit "VAT Statement Calc. Events CZL""

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