#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.
- 2files
- 1AL files
- 1objects
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
- Codeunit 12184 “Fattura Doc. Helper”, Base Application (IT layer): modified
Context
- Fixes: #11377 [Bug]: Italian FatturaPA exporter can generate invalid CAP values from unconstrained Post Code fields (closed)
- Work items: AB#653490
- Labels: ADO: Sync, From Fork, Team: Finance
- Systems: integration
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).