aligned-ibrp-047

The rule sets below word this rule differently; each wording is shown with its rule set.

error: the document is invalid

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.

Message

Each VAT breakdown (ibg-23) MUST be defined through a VAT category code (ibt-118).

Context
cac:TaxSubtotal
Test
exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID)

Checked with PINT UAE Invoice, PINT UAE Credit Note

Message

Each tax breakdown (ibg-23) MUST be defined through a tax category code (ibt-118).

Context
cac:TaxSubtotal
Test
exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID)

Checked with PINT JP Invoice

Message

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'.

Context
cac:TaxSubtotal
Test
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