BR-CO-14

[BR-CO-14] - Invoice total VAT amount (BT-110) must equal the sum of VAT category tax amounts (BT-117), if the amounts are provided.

About

ID
BR-CO-14
Flag
fatal
Context
pxs-taxdata:TaxData/pxs-taxdata:ReportedTransaction/pxs-taxdata:ReportedDocument/cac:TaxTotal
Test
not(cbc:TaxAmount and cac:TaxSubtotal and count(cac:TaxSubtotal[cbc:TaxAmount]) = count(cac:TaxSubtotal)) or xs:decimal(cbc:TaxAmount) = round(sum(cac:TaxSubtotal/xs:decimal(cbc:TaxAmount)) * 100) div 100
Rules
  • BR-CO-14 [BR-CO-14] - Invoice total VAT amount (BT-110) must equal the sum of VAT category tax amounts (BT-117), if the amounts are provided.
Syntax binding