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