aligned-ibrp-047
The rule sets below word this rule differently; each wording is shown with its rule set.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
Each VAT breakdown (ibg-23) MUST be defined through a VAT category code (ibt-118).
cac:TaxSubtotal
exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID)
Checked with PINT UAE Invoice, PINT UAE Credit Note
Each tax breakdown (ibg-23) MUST be defined through a tax category code (ibt-118).
cac:TaxSubtotal
exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID)
Checked with PINT JP Invoice
Each tax breakdown (ibg-23) MUST be defined through a tax category code (ibt-118). VAT subtotals need a code; AAL subtotals must use code 'TTX'.
cac:TaxSubtotal
exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID) or exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='AAL'][normalize-space(cbc:ID)='TTX'])
Checked with PINT MY Invoice, PINT MY Credit Note