- WorkAlio
- Validation rules
- BR-CO-12
EN 16931 core rules
BR-CO-12: Sum of charges on document level (BT-108) must match the invoice's other totals
What this rule requires
Sum of charges on document level (BT-108) must match the invoice's other totals.
ExampleEN 16931 (UBL)
An invoice built like a valid one, except for this:
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">102.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">121.00</cbc:TaxInclusiveAmount>
<cbc:ChargeTotalAmount currencyID="EUR">2.00</cbc:ChargeTotalAmount>
<cbc:PayableAmount currencyID="EUR">121.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>The validator says: Sum of charges on document level (BT-108) is 2.00, but the other amounts on the invoice add up to 5.00.
How to fix it
Recalculate Sum of charges on document level so it matches the sum of the invoice's other amounts.
Frequently asked questions
- What does BR-CO-12 mean?
- Sum of charges on document level (BT-108) must match the invoice's other totals. The rule runs under EN 16931 (UBL), Peppol BIS 3.0, and XRechnung 3.0 (UBL).
- How do I fix BR-CO-12?
- Recalculate Sum of charges on document level so it matches the sum of the invoice's other amounts. In UBL the element is /Invoice/cac:LegalMonetaryTotal/cbc:ChargeTotalAmount.
Runs under these profiles
- EN 16931 (UBL)
- Peppol BIS 3.0
- XRechnung 3.0 (UBL)
Element path
- Sum of charges on document level (BT-108)UBL /Invoice/cac:LegalMonetaryTotal/cbc:ChargeTotalAmountCII /CrossIndustryInvoice/SupplyChainTradeTransaction/ApplicableHeaderTradeSettlement/SpecifiedTradeSettlementHeaderMonetarySummation/ChargeTotalAmountRead from what WorkAlio's CII parser accepts — there is no CII writer yet, so this path is not independently verified the way the UBL path is.