VRBL-INV-AU-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-au-1p0 |
|
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']))