VRBL-INV-SA-1p2-105

Basic Info

Rule An Invoice line Invoice Line Tax Subtotal Tax ID is "Zero rated" the Invoice Line Tax Subtotal Tax Percent must be 0 (zero).
Context /ubl:Invoice/cac:InvoiceLine
Pattern vrbl-invoice-sa-1p2
Severity fatal

Implementation

count(cac:DocumentReference/cbc:ID) = 0 or not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID = 'Z') or cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cbc:ID = 'Z' and cbc:Percent = 0]