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

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

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

Context

No source states these links: they share an object, a model read them, or a person found the same subject.

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