[BR-CO-16] - Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) - Paid amount (BT-113) + Rounding amount (BT-114), if BT-112 is provided.
BR-CO-16pxs-taxdata:TaxData/pxs-taxdata:ReportedTransaction/pxs-taxdata:ReportedDocument/pxs-taxdata:MonetaryTotalnot(cbc:TaxInclusiveAmount) or ((exists(cbc:PrepaidAmount) and not(exists(cbc:PayableRoundingAmount)) and xs:decimal(cbc:PayableAmount) = round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount)) * 100) div 100) or (not(exists(cbc:PrepaidAmount)) and not(exists(cbc:PayableRoundingAmount)) and xs:decimal(cbc:PayableAmount) = xs:decimal(cbc:TaxInclusiveAmount)) or (exists(cbc:PrepaidAmount) and exists(cbc:PayableRoundingAmount) and round((xs:decimal(cbc:PayableAmount) - xs:decimal(cbc:PayableRoundingAmount)) * 100) div 100 = round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount)) * 100) div 100) or (not(exists(cbc:PrepaidAmount)) and exists(cbc:PayableRoundingAmount) and round((xs:decimal(cbc:PayableAmount) - xs:decimal(cbc:PayableRoundingAmount)) * 100) div 100 = xs:decimal(cbc:TaxInclusiveAmount)))