VRBL-INV-SA-1p2-104
Basic Info
| Rule | If the Invoice Line Document Reference ID is provided in an Invoice Line, then the following data is mandatory to provide in that invoice line - Invoice Line Tax Subtotal Amount, Invoice Line Tax Subtotal Tax Percent, Invoice Line Tax Subtotal Taxable Amount. |
| Context |
/ubl:Invoice/cac:InvoiceLine
|
| Pattern | vrbl-invoice-sa-1p2 |
| Severity | fatal |
Implementation
count(cac:DocumentReference/cbc:ID) = 0 or (count(cac:DocumentReference/cbc:ID) >0 and count(cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount)>0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:Percent)>0 and count(cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount)>0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID)>0)