VRBL-INV-EN16931-M-97
Basic Info
| Rule | An Invoice that contains an Invoice Line Group, a Allowance Group or a Charge Group where the Tax Category ID is "Split payment" must not contain an Invoice Line Group, a Allowance Group or a Charge Group where the Tax Category ID is "Standard rated". |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-en16931-ubl-model |
| Severity | fatal |
Implementation
((cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID ='B' or cac:AllowanceCharge/cac:TaxCategory/cbc:ID ='B' or cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID = 'B')
and
(not(boolean(cac:TaxTotal/cac:TaxSubtotal/cbc:ID ='S' or cac:AllowanceCharge/cac:TaxCategory/cbc:ID ='S' or cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID = 'S'))))
or
(not(boolean(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID ='B' or cac:AllowanceCharge/cac:TaxCategory/cbc:ID ='B' or cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID = 'B')))