Fixture ID: brokenTotalsChain · XPath: N/A (Computed / Semantic Rule)
BR-CO-16 requires the amount due for payment (BT-115) to equal BT-112 − paid amount (BT-113) + rounding amount (BT-114). You declared 1000.00 for BT-115, but the document's own stated figures give 1685.00 — a difference of -685.00 EUR. BT-113 (paid amount) is subtracted and BT-114 (rounding amount) is added — and BT-114 is signed, so a rounding-down carries a negative value. A payable amount that equals BT-112 on an invoice with a deposit is the usual shape of this failure.
BR-CO-16Either correct the line data so it sums to your declared figure, or drop declaredTotals.payableAmount and let the library compute it. Note that EN 16931 sums *rounded* line amounts: round each line to 2 decimals first, then add — rounding only the final sum drifts by a cent or two on long invoices.
"declaredTotals": { "payableAmount": 1685.00 }