{
  "id": "BR-CO-15",
  "country": "EU",
  "syntax": "ubl",
  "group": "totals",
  "severity": "fatal",
  "severity_note": "fatal, from the Flag column of the Peppol BIS Billing 3.0 UBL rules index retrieved 2026-10-17.",
  "spec": "Peppol BIS Billing 3.0, May 2026 release, EN 16931 model bound to UBL",
  "statement": "Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).",
  "statement_lang": "en",
  "context": "/ubl:Invoice | /cn:CreditNote",
  "test": "every $Currency in cbc:DocumentCurrencyCode satisfies (count(cac:TaxTotal/xs:decimal(cbc:TaxAmount[@currencyID=$Currency])) eq 1) and (cac:LegalMonetaryTotal/xs:decimal(cbc:TaxInclusiveAmount) = round( (cac:LegalMonetaryTotal/xs:decimal(cbc:TaxExclusiveAmount) + cac:TaxTotal/xs:decimal(cbc:TaxAmount[@currencyID=$Currency])) * 10 * 10) div 100)",
  "meaning": "The invoice total with VAT (BT-112) must equal the total without VAT (BT-109) plus the VAT total (BT-110). The published test compares them in the document currency and expects one VAT total in that currency.",
  "fix": "Set BT-112 to BT-109 plus BT-110.",
  "example_fail": "BT-109 is 100, BT-110 is 19, and BT-112 is 100.",
  "example_pass": "BT-109 is 100, BT-110 is 19, and BT-112 is 119.",
  "example_note": "Illustration of the condition in the official statement. Not an example published by the source.",
  "source_url": "https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/BR-CO-15/",
  "source_retrieved": "2026-10-17",
  "last_verified": "2026-10-17"
}
