Rules
VRBL-INV-PEPPOL-PINT-AUNZ-1p0-74
Basic Info
| Rule | An Invoice that contains a Tax Subtotal where the Tax Category ID is "O", must not contain other Tax Subtotal. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-peppol-pint-au-nz |
| Severity | fatal |
Implementation
(
boolean(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/cbc:ID = 'GST' and cbc:ID = 'O'])
and
count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/cbc:ID = 'GST' and cbc:ID != 'O']) = 0
)
or
not(boolean(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/cbc:ID = 'GST' and cbc:ID = 'O']))