---
id: change/bcapps/12067
type: change
title: "#12067 [main] bug 652323 - Move creating VAT Period to setup demo data level"
summary: Moved VAT Period creation from Master Data to Setup Data level in Czech Contoso demo data to ensure VAT periods exist when setup-level processes depend on them, removing downstream test workarounds.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-19T01:10:56.721Z"
  flags: []
generated:
  at: "2026-10-28T08:47:18.430Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 11a29c3246eb67ae751a5f36d633bc63be12689a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12067
    title: "microsoft/BCApps#12067: [main] bug 652323 - Move creating VAT Period to setup demo data level"
    date: "2026-10-08"
    commit: 11a29c3246eb67ae751a5f36d633bc63be12689a
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 12067
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12067
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-08T15:13:00Z"
author: DavidHolusa
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 3
  deletions: 28
  al: 1
apps: []
objects_touched: []
objects_unjoined:
  - path: src/Apps/CZ/ContosoCoffeeDemoDatasetCZ/app/DemoData/ContosoCZLocalization.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 652323
systems:
  - finance
  - reporting
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #12067 [main] bug 652323 - Move creating VAT Period to setup demo data level

> Moved VAT Period creation from Master Data to Setup Data level in Czech Contoso demo data to ensure VAT periods exist when setup-level processes depend on them, removing downstream test workarounds.

[Pull request](https://github.com/microsoft/BCApps/pull/12067) · merged into `main` (BC30) on 2026-10-08 by DavidHolusa · 3 files (+3 -28), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- VAT Period and VAT Return Period are now created at the Setup Data level instead of Master Data in Contoso CZ Localization
- Fixes 'VAT Period does not exist' posting failures in newly generated CZ demo databases
- Test Initialize Handler CZL no longer disables VAT date usage for codeunits 137161 and 139989, and its DisableVATDateUsage helper was deleted
- E-Doc. Item Charge Tests no longer disable VAT Reporting Date Usage
- Only demo data order changes; no schema, business logic or permission changes
- Behaviour changes for users or extensions.

## AL objects touched

- `src/Apps/CZ/ContosoCoffeeDemoDatasetCZ/app/DemoData/ContosoCZLocalization.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#652323
- Labels: AL: Apps (W1), Team: Finance
- Systems: finance, reporting

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