Reference
Markdown exportBR-CO-12 Sum of document charges must match total
Sum of charges on document level (BT-108) shall equal the sum of all document level charge amounts (BT-99): BT-108 = Σ BT-99.
Problem Description
Sum of charges on document level (BT-108) shall equal the sum of all document level charge amounts (BT-99): BT-108 = Σ BT-99.
ERROR
XRechnung 3.0
Context and Significance
This EN16931 core calculation rule ties the charge total into the document total chain (BR-CO-13), so any drift breaks the payable amount reconciliation.
Solution
Recompute BT-108 as the exact arithmetic sum of every document level charge amount (BT-99) and write that value into ChargeTotalAmount.
Quick actions
Valid Examples
Use these points as the practical checks for this section.
- BT-99 = 20.00 and BT-99 = 10.00, BT-108 = 30.00
Invalid Examples
Use these points as the practical checks for this section.
- BT-99 = 20.00 and BT-99 = 10.00, but BT-108 = 25.00
Code Examples
Valid XML
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:Amount currencyID="EUR">20.00</cbc:Amount>
</cac:AllowanceCharge>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
</cac:AllowanceCharge>
<cac:LegalMonetaryTotal>
<cbc:ChargeTotalAmount currencyID="EUR">30.00</cbc:ChargeTotalAmount>
</cac:LegalMonetaryTotal>Invalid XML
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:Amount currencyID="EUR">20.00</cbc:Amount>
</cac:AllowanceCharge>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
</cac:AllowanceCharge>
<cac:LegalMonetaryTotal>
<cbc:ChargeTotalAmount currencyID="EUR">25.00</cbc:ChargeTotalAmount>
</cac:LegalMonetaryTotal>