fatalEN 16931syntax binding ruleCIIBG-20BG-21BT-96
Each Specified Trade Allowance Charge (BG-20)(BG-21) should contain a VAT rate (BT-96).
An allowance or charge has no VAT rate.
Add the rate (BT-96 for allowances, BT-103 for charges) matching its category code.
CII — context //ram:SpecifiedTradeAllowanceCharge
count(ram:CategoryTradeTax) <= 1
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.