code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#11629 Fix Norwegian SAF-T 1.30 export issues

Norwegian SAF-T 1.30 export now correctly reports header versions, handles credit amounts as non-negative, excludes unselected dimensions from the XML, and counts transaction groups consistently across split files.

Pull request · merged into main (BC30) on 2026-10-07 by AleksanderGladkov · 7 files (+1139 -69), 5 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Header versions are now set to 1.30 and the current application version instead of hardcoded values
  • Credit currency amounts are exported as non-negative values rather than retaining their sign
  • Analysis data for dimensions not selected for export is omitted from the XML
  • Transaction count uses exported transaction groups across journals and repeats totals in every split file
  • SAF-T 1.20 exports remain unchanged; comprehensive XML regression tests added
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #12336 into releases/29.x on 2026-10-13

Context

  • Work items: AB#650030
  • Labels: Team: Finance
  • Systems: finance
  • From the description: “Norwegian SAF-T 1.30 exports can contain wrong header versions, negative credit amounts, unwanted dimensions and inconsistent transaction totals.”

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