code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#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 · 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

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