BR-CO-11: The sum of allowances is wrong
This code shows up when an electronic invoice is validated. Here is what it means, why it fires, and what to change in the file.
Why this code appears
The sum of document-level allowances (BT-107) does not match the declared allowances (BT-92).
How to fix it
Add up the amounts of every allowance element and carry the result into AllowanceTotalAmount. Check that no allowance is counted as a charge: the ChargeIndicator tells them apart, and it is false for an allowance.
Where it happens
This code comes from EN 16931, the European e-invoicing standard. It concerns business term BT-107.