Rules / ALIGNED-IBRP-037
ALIGNED-IBRP-037 error
Each Document level charge
Each Document level charge (ibg-21) must have a Document level charge VAT category code (ibt-102).
Fails when this is false
not(parent::ubl:Invoice|parent::cn:CreditNote) or exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID)The schematron test, verbatim. Context: cac:AllowanceCharge[cbc:ChargeIndicator = true()]
Fix
Change the data so the statement above is true. Paste the invoice into the validator to see the exact element that fails.