PintLint

Rules / IBR-CO-15

IBR-CO-15 error

Total with VAT = total without VAT + VAT

Total with VAT (IBT-112) must equal total without VAT (IBT-109) plus total VAT (IBT-110).

Fails whenever VAT was corrected and the grand total wasn't.

Fails

<cbc:TaxExclusiveAmount currencyID="AED">7500.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="AED">7950.00</cbc:TaxInclusiveAmount>
<!-- VAT is 375.00 -->

Fix

Recalculate: 7500.00 + 375.00 = 7875.00.

Passes

<cbc:TaxInclusiveAmount currencyID="AED">7875.00</cbc:TaxInclusiveAmount>
Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
cac:TaxTotal/cbc:TaxIncludedIndicator = true() or ((cac:LegalMonetaryTotal/xs:decimal(cbc:TaxInclusiveAmount) = round( (cac:LegalMonetaryTotal/xs:decimal(cbc:TaxExclusiveAmount) + cac:TaxTotal[1]/xs:decimal(cbc:TaxAmount[@currencyID=/*/cbc:DocumentCurrencyCode])) * 10 * 10) div 100))

Official text: Invoice total amount with Tax (ibt-112) = Invoice total amount without Tax (ibt-109) + Invoice total Tax amount (ibt-110).

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice