#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.
- 7files
- 3AL files
- 3objects
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
- Codeunit 10692 “Generate SAF-T 1.3 File”, NorwegianSAFT (NO layer): modified
- Codeunit 10695 “Generate SAF-T 1.4 File”, NorwegianSAFT (NO layer): modified
- Codeunit 10672 “SAF-T Mapping Helper”, NorwegianSAFT (NO layer): modified
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”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Set Up and Export Norwegian SAF-T Files — possibly related: Documents Norwegian SAF-T file export setup and processing (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).