Rules / IBR-053
If the Tax accounting currency code is present, then the Invoice total Tax amount in accounting currency must be provided
If the Tax accounting currency code (ibt-006) is present, then the Invoice total Tax amount in accounting currency (ibt-111) must be provided.
Fails when this is false
every $taxcurrency in cbc:TaxCurrencyCode satisfies exists(//cac:TaxTotal/cbc:TaxAmount[@currencyID=$taxcurrency])The schematron test, verbatim. Context: /ubl:Invoice | /cn:CreditNote
Fix
Change the data so the condition below holds. It reads cac:TaxTotal, cbc:TaxAmount, cbc:TaxCurrencyCode, @currencyID. Paste the invoice into the validator to see the exact element that fails.