Reference
BR-CO-13 Invoice total without VAT must equal line total minus allowances plus charges
The Invoice total amount without VAT (BT-109) must equal the Sum of invoice line net amount (BT-106) minus the Sum of allowances on document level (BT-107) plus the Sum of charges on document level (BT-108).
Problem Description
The Invoice total amount without VAT (BT-109) must equal the Sum of invoice line net amount (BT-106) minus the Sum of allowances on document level (BT-107) plus the Sum of charges on document level (BT-108).
ERROR
XRechnung 3.0
Context and Significance
BR-CO-13 is the central totals-chain rule. If it fails, every downstream rule (BR-CO-15, BR-CO-16) also fails. Real-world rejections most often stem from rounding policies that differ between the line engine and the totals engine.
Solution
Recompute BT-109 = BT-106 − BT-107 + BT-108 and write the result back into the totals block.
Valid Examples
- BT-106 = 200.00, BT-107 = 10.00, BT-108 = 5.00 → BT-109 = 195.00
- BT-106 = 100.00, no allowances or charges → BT-109 = 100.00
Invalid Examples
- BT-106 = 200.00, BT-107 = 10.00, BT-108 = 5.00 but BT-109 = 200.00
- BT-109 left equal to BT-106 even though BT-107 > 0
Technical Details
Affected Fields
BT-109 Invoice total amount without VAT, BT-106 Sum of invoice line net amount, BT-107 Sum of allowances on document level, BT-108 Sum of charges on document level