fatalEN 16931EN 16931 business ruleCIIUBLBG-23BT-116
Each VAT breakdown (BG-23) shall have a VAT category taxable amount (BT-116).
A VAT breakdown group (BG-23) has no taxable amount (BT-116).
Add BT-116 (UBL TaxSubtotal/cbc:TaxableAmount) to every breakdown group, including groups at 0% and reverse charge groups where it is the full net amount.
CII — context $VAT_breakdown
(ram:BasisAmount)
UBL — context $VAT_breakdown
exists(cbc:TaxableAmount)
Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.