BR-CO-15

[BR-CO-15] - Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110), if VAT amount is provided.

About

ID
BR-CO-15
Flag
fatal
Context
pxs-taxdata:TaxData/pxs-taxdata:ReportedTransaction/pxs-taxdata:ReportedDocument
Test
every $Currency in cbc:DocumentCurrencyCode satisfies (not(cac:TaxTotal/cbc:TaxAmount[@currencyID=$Currency]) or (pxs-taxdata:MonetaryTotal/xs:decimal(cbc:TaxInclusiveAmount) = round((pxs-taxdata:MonetaryTotal/xs:decimal(cbc:TaxExclusiveAmount) + cac:TaxTotal/xs:decimal(cbc:TaxAmount[@currencyID=$Currency])) * 100) div 100))
Rules
  • BR-CO-15 [BR-CO-15] - Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110), if VAT amount is provided.
Syntax binding