code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#14437 Bugs/659500 NO SAF-T: ExchangeRate is inverted and calculated CurrencyAmount is wrong for customer/vendor transactions

Fixed inverted exchange rate and incorrect currency amount calculations for customer and vendor transactions in Norwegian SAF-T export, plus improved account mapping to include all accounts as required by tax regulations.

Pull request · merged into main (BC30) on 2026-11-27 by AndersLarsenMicrosoft · 7 files (+520 -120), 3 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Corrected exchange rate inversion causing wrong CurrencyAmount calculations in SAF-T 1.30 and 1.40 files
  • Updated account mapping logic to include all chart of accounts in export regardless of period activity
  • Aligns with Norwegian Tax Administration requirements for complete account visibility in SAF-T files
  • Enhanced test coverage with additional validation for currency calculations and account handling
  • Changes affect both SAF-T 1.3 and 1.4 file generation
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#659500
  • Labels: Team: Finance
  • Systems: finance
  • From the description: “ExchangeRate is inverted and calculated CurrencyAmount is wrong for customer/vendor transactions”

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