---
id: change/bcapps/9719
type: change
title: "#9719 [main] bug 643971 - Implement checks for blocked customers and vendors in advance letters"
summary: Advance letter headers now validate that customers and vendors are not blocked or privacy-blocked, preventing creation and posting of advance letters for blocked parties.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - tableextension customer czz
  - tableextension vendor czz
  - table purch. adv. letter header czz
  - table sales adv. letter header czz
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:16.021Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 9c2d9aab7ebcbcda0760c5c3da2bafbe63b66f87
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9719
    title: "microsoft/BCApps#9719: [main] bug 643971 - Implement checks for blocked customers and vendors in advance letters"
    date: "2026-07-28"
    commit: 9c2d9aab7ebcbcda0760c5c3da2bafbe63b66f87
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/tableextension/31045-cz
    - object/tableextension/31046-cz
    - object/table/31008-cz
    - object/table/31004-cz
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9719
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9719
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-28T05:19: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: 6
  additions: 271
  deletions: 0
  al: 4
apps:
  - AdvancePaymentsLocalization
objects_touched:
  - key: tableextension/31045
    page: tableextension/31045-cz
    type: tableextension
    id: 31045
    name: Customer CZZ
    app: AdvancePaymentsLocalization
    status: modified
  - key: tableextension/31046
    page: tableextension/31046-cz
    type: tableextension
    id: 31046
    name: Vendor CZZ
    app: AdvancePaymentsLocalization
    status: modified
  - key: table/31008
    page: table/31008-cz
    type: table
    id: 31008
    name: Purch. Adv. Letter Header CZZ
    app: AdvancePaymentsLocalization
    status: modified
  - key: table/31004
    page: table/31004-cz
    type: table
    id: 31004
    name: Sales Adv. Letter Header CZZ
    app: AdvancePaymentsLocalization
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 643971
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #9719 [main] bug 643971 - Implement checks for blocked customers and vendors in advance letters

> Advance letter headers now validate that customers and vendors are not blocked or privacy-blocked, preventing creation and posting of advance letters for blocked parties.

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

## What changed

- Added validation checks when setting vendor/customer on advance letter headers
- Blocks posting of advance letter payments if the vendor or customer is blocked or privacy-blocked
- Covers both purchase and sales advance letters with matching block types (Payment for vendors; Ship/Invoice for customers)
- Includes 14 tests covering all blocking scenarios for both purchase and sales advance letters
- Existing advance letters with blocked parties will fail on subsequent posting operations
- Behaviour changes for users or extensions.

## AL objects touched

- [Table extension 31045 "Customer CZZ"](../../objects/tableextension/31045-cz.md), AdvancePaymentsLocalization (CZ layer): modified
- [Table extension 31046 "Vendor CZZ"](../../objects/tableextension/31046-cz.md), AdvancePaymentsLocalization (CZ layer): modified
- [Table 31008 "Purch. Adv. Letter Header CZZ"](../../objects/table/31008-cz.md), AdvancePaymentsLocalization (CZ layer): modified
- [Table 31004 "Sales Adv. Letter Header CZZ"](../../objects/table/31004-cz.md), AdvancePaymentsLocalization (CZ layer): modified

## Context

- Work items: AB#643971
- Labels: Team: Finance
- Systems: finance

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