---
id: change/bcapps/13616
type: change
title: "#13616 [main] but 657849 - Refactor TableRelation logic and disable validation for Bank Account fields in multiple table extensions"
summary: SWIFT Code validation is made consistent across Czech localization by disabling table relation validation on SWIFT fields in purchase and sales headers and ledger entries, allowing codes not in the SWIFT Code table to work like bank accounts do.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - tableextension cust. ledger entry czl
  - tableextension purchase header czl
  - tableextension sales header czl
  - tableextension vendor ledger entry czl
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-11-10T00:55:32.680Z"
  flags: []
generated:
  at: "2026-12-05T00:13:03.967Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 4b94d4867be901ed3279d150e1ef03147ab63c50
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13616
    title: "microsoft/BCApps#13616: [main] but 657849 - Refactor TableRelation logic and disable validation for Bank Account fields in multiple table extensions"
    date: "2026-11-09"
    commit: 4b94d4867be901ed3279d150e1ef03147ab63c50
    t: null
    quote: Aligns document and ledger entry validation with the existing bank account behavior.
links:
  learn: []
  objects:
    - object/tableextension/11720-cz
    - object/tableextension/11705-cz
    - object/tableextension/11703-cz
    - object/tableextension/11721-cz
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/reports/report-33
      title: Reconcile Cust. and Vend. Accs. (Report)
      label: possibly related
      why: Documents reconciliation between general ledger and customer/vendor ledgers across posting groups.
      by: model
number: 13616
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13616
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-09T16:48:54Z"
author: DavidHolusa
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 12
  deletions: 20
  al: 4
apps:
  - CoreLocalizationPack
objects_touched:
  - key: tableextension/11720
    page: tableextension/11720-cz
    type: tableextension
    id: 11720
    name: Cust. Ledger Entry CZL
    app: CoreLocalizationPack
    status: modified
  - key: tableextension/11705
    page: tableextension/11705-cz
    type: tableextension
    id: 11705
    name: Purchase Header CZL
    app: CoreLocalizationPack
    status: modified
  - key: tableextension/11703
    page: tableextension/11703-cz
    type: tableextension
    id: 11703
    name: Sales Header CZL
    app: CoreLocalizationPack
    status: modified
  - key: tableextension/11721
    page: tableextension/11721-cz
    type: tableextension
    id: 11721
    name: Vendor Ledger Entry CZL
    app: CoreLocalizationPack
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 657849
systems:
  - purchasing
  - sales
quote: Aligns document and ledger entry validation with the existing bank account behavior.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13616 [main] but 657849 - Refactor TableRelation logic and disable validation for Bank Account fields in multiple table extensions

> SWIFT Code validation is made consistent across Czech localization by disabling table relation validation on SWIFT fields in purchase and sales headers and ledger entries, allowing codes not in the SWIFT Code table to work like bank accounts do.

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

## What changed

- Disables ValidateTableRelation for SWIFT Code fields in purchase headers, sales headers, vendor ledger entries, and customer ledger entries
- Allows SWIFT codes that don't exist in the SWIFT Code table to be used, consistent with vendor bank account behavior
- Fixes an issue where Update Document action on posted purchase invoices failed when changing unrelated fields like Constant Symbol
- Table relations are retained but validation is disabled
- Applies only to Czech Core Localization Pack extensions
- Behaviour changes for users or extensions.

## AL objects touched

- [Table extension 11720 "Cust. Ledger Entry CZL"](../../objects/tableextension/11720-cz.md), CoreLocalizationPack (CZ layer): modified
- [Table extension 11705 "Purchase Header CZL"](../../objects/tableextension/11705-cz.md), CoreLocalizationPack (CZ layer): modified
- [Table extension 11703 "Sales Header CZL"](../../objects/tableextension/11703-cz.md), CoreLocalizationPack (CZ layer): modified
- [Table extension 11721 "Vendor Ledger Entry CZL"](../../objects/tableextension/11721-cz.md), CoreLocalizationPack (CZ layer): modified

## Context

- Work items: AB#657849
- Labels: Team: Finance
- Systems: purchasing, sales
- From the description: "Aligns document and ledger entry validation with the existing bank account behavior."

## Possibly related

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

- [Reconcile Cust. and Vend. Accs. (Report)](https://learn.microsoft.com/dynamics365/business-central/reports/report-33) — possibly related: Documents reconciliation between general ledger and customer/vendor ledgers across posting groups. (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).
