#12292 Fix #10964: Use VAT registration number fallback in FatturaPA file name
FatturaPA file names now use VAT Registration Number as a fallback when Fiscal Code is blank, matching the transmitter identifier already used in the XML document.
- 3files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-10-30 by marcus905 (community contribution) · 3 files (+41 -5), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Fiscal Code is checked first; if empty, VAT Registration No. is used for the transmitter identifier
- File naming now aligns with the XML’s IdTrasmittente/IdCodice field behavior
- Helper method centralized to avoid duplicated fallback logic in GetFileName()
- Existing files generated with Fiscal Code remain unchanged
- Added unit tests for the fallback scenario
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 12179 “Export FatturaPA Document”, Base Application (IT layer): modified
- Codeunit 12184 “Fattura Doc. Helper”, Base Application (IT layer): modified
Context
- Fixes: #10964 [Bug]: FatturaPA filename does not fall back to VAT Registration No. when Fiscal Code is empty (closed)
- Work items: AB#653568
- Labels: ADO: Sync, From Fork, Team: Finance
- Systems: integration
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Electronic Invoicing (FatturaPA) in the Italian Version — possibly related: Documents FatturaPA electronic invoicing setup and file generation in Italian version. (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).