Rules
VRBL-INV-SA-1p2-110
Basic Info
| Rule | The Line Item Tax Sub Total Tax Inclusive Amount = Invoice Line Net Amount + Invoice Line Tax Amount. |
| Context |
/ubl:Invoice/cac:InvoiceLine
|
| Pattern | vrbl-invoice-sa-1p2 |
| Severity | fatal |
Implementation
(
cac:DocumentReference/cbc:DocumentTypeCode='386'
and
cac:DocumentReference/cbc:ID != ''
)
or
(
(
round(cac:TaxTotal/cac:TaxSubtotal/cbc:TaxInclusiveAmount * 100)
>=
(round((cbc:LineExtensionAmount + cac:TaxTotal/cbc:TaxAmount) * 100)) - 1
)
and
(
round(cac:TaxTotal/cac:TaxSubtotal/cbc:TaxInclusiveAmount * 100)
<=
(round((cbc:LineExtensionAmount + cac:TaxTotal/cbc:TaxAmount) * 100)) + 1
)
)