code change · fixIntegration & APIsofficial - Microsoftreviewed - checked by Opus

#11660 Fix #11377: Prevent invalid FatturaPA CAP values

FatturaPA validation now requires domestic CAP (postal code) values to contain exactly five numeric characters, preventing invalid values like '1234A' from being written to the XML schema.

Pull request · merged into main (BC30) on 2026-11-18 by marcus905 (community contribution) · 2 files (+184 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Validates company and domestic customer post codes before FatturaPA document generation
  • Enforces five-digit numeric CAP requirement only for domestic Italian addresses
  • Foreign recipient behavior unchanged, still emits ‘00000’ for non-Italian postal codes
  • Invalid values reported through existing FatturaPA error validation flow
  • Standard Post Code field remains unrestricted for normal Business Central use
  • Behaviour changes for users or extensions.

AL objects touched

Context

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