BR-CO23 rules
Every total on an invoice is derived from something else, and these rules check the arithmetic. They are the most commonly hit family in practice, and almost always for the same reason: rounding each line for display while summing the unrounded values underneath.
| BR-CO-03 | fatal | Value added tax point date (BT-7) and Value added tax point date code (BT-8) are mutually exclusive. |
| BR-CO-04 | fatal | Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151). |
| BR-CO-05 | fatal | Document level allowance reason code (BT-98) and Document level allowance reason (BT-97) shall indicate the same type of allowance. |
| BR-CO-06 | fatal | Document level charge reason code (BT-105) and Document level charge reason (BT-104) shall indicate the same type of charge. |
| BR-CO-07 | fatal | Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason. |
| BR-CO-08 | fatal | Invoice line charge reason code (BT-145) and Invoice line charge reason (BT-144) shall indicate the same type of charge reason. |
| BR-CO-09 | fatal | The Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) shall have a prefix in accordance with ISO co… |
| BR-CO-10 | fatal | Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131). |
| BR-CO-11 | fatal | Sum of allowances on document level (BT-107) = Σ Document level allowance amount (BT-92). |
| BR-CO-12 | fatal | Sum of charges on document level (BT-108) = Σ Document level charge amount (BT-99). |
| BR-CO-13 | fatal | Invoice total amount without VAT (BT-109) = Σ Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108). |
| BR-CO-14 | fatal | Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117). |
| BR-CO-15 | fatal | Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110). |
| BR-CO-16 | fatal | Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114). |
| BR-CO-17 | fatal | VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals. |
| BR-CO-18 | fatal | An Invoice shall at least have one VAT breakdown group (BG-23). |
| BR-CO-19 | fatal | If Invoicing period (BG-14) is used, the Invoicing period start date (BT-73) or the Invoicing period end date (BT-74) shall be filled, or both. |
| BR-CO-20 | fatal | If Invoice line period (BG-26) is used, the Invoice line period start date (BT-134) or the Invoice line period end date (BT-135) shall be filled, or both. |
| BR-CO-21 | fatal | Each Document level allowance (BG-20) shall contain a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98), or both. |
| BR-CO-22 | fatal | Each Document level charge (BG-21) shall contain a Document level charge reason (BT-104) or a Document level charge reason code (BT-105), or both. |
| BR-CO-23 | fatal | Each Invoice line allowance (BG-27) shall contain an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140), or both. |
| BR-CO-24 | fatal | Each Invoice line charge (BG-28) shall contain an Invoice line charge reason (BT-144) or an Invoice line charge reason code (BT-145), or both. |
| BR-CO-26 | fatal | In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identif… |