#9749 OIOUBL fixes after schematron update
OIOUBL export now correctly handles discounts by reporting them with proper VAT categories per tax type instead of using a synthetic ReverseCharge, ensuring compliance with updated schematron validation rules.
- 10files
- 8AL files
- 8objects
Pull request · merged into main (BC30) on 2026-08-10 by mynjj · 10 files (+817 -347), 8 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Discounts are now exported with the correct VAT category matching each line’s tax type instead of always using ReverseCharge
- Tax totals and subtotals are now split per VAT category to match all reported tax categories
- Line-level taxable amounts are reported before discounts to allow header-level allowances to subtract correctly
- Header-level allowance charges are now emitted multiple times per VAT type pair instead of a single ReverseCharge entry
- Validation against the OIOUBL schematron now passes for documents with header or line discounts
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 13638 “OIOUBL-Exp. Issued Fin. Chrg”, OIOUBL (DK layer): modified
- Codeunit 13648 “OIOUBL-Common Logic”, OIOUBL (DK layer): modified
- Table 13673 “OIOUBL-Tax Group Buffer”, OIOUBL (DK layer): added
- Codeunit 13639 “OIOUBL-Export Issued Reminder”, OIOUBL (DK layer): modified
- Codeunit 13637 “OIOUBL-Export Sales Cr. Memo”, OIOUBL (DK layer): modified
- Codeunit 13636 “OIOUBL-Export Sales Invoice”, OIOUBL (DK layer): modified
- Codeunit 13644 “OIOUBL-Export Service Cr.Memo”, OIOUBL (DK layer): modified
- Codeunit 13643 “OIOUBL-Export Service Invoice”, OIOUBL (DK layer): modified
Context
- Work items: AB#638267
- Labels: Team: Finance
- Systems: integration
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).