Reference
Markdown exportBR-DEX-09 Amount due must account for third party payments
Amount due for payment (BT-115) must equal Invoice total amount with VAT (BT-112) minus Paid amount (BT-113) plus Rounding amount (BT-114) plus the sum of Third party payment amount (BT-DEX-002).
Problem Description
Amount due for payment (BT-115) must equal Invoice total amount with VAT (BT-112) minus Paid amount (BT-113) plus Rounding amount (BT-114) plus the sum of Third party payment amount (BT-DEX-002).
ERROR
XRechnung 3.0
Context and Significance
This XRechnung Extension rule extends the core amount-due calculation (BR-CO-16) with the third party payment total that only the Extension scenario supports.
Solution
Recompute BT-115 as BT-112 − BT-113 + BT-114 + Σ BT-DEX-002 and adjust the third party payment amounts if they do not reconcile. If no third party payments apply, use the standard XRechnung CIUS profile, where BR-CO-16 governs the amount due.
Quick actions
Valid Examples
Use these points as the practical checks for this section.
- BT-112 = 119.00, BT-113 = 0.00, BT-114 = 0.00, Σ BT-DEX-002 = 20.00 → BT-115 = 139.00
Invalid Examples
Use these points as the practical checks for this section.
- BT-115 = 119.00 while Σ BT-DEX-002 = 20.00 was omitted from the calculation
Code Examples
<cac:LegalMonetaryTotal>
<cbc:TaxInclusiveAmount currencyID="EUR">119.00</cbc:TaxInclusiveAmount>
<cbc:PrepaidAmount currencyID="EUR">0.00</cbc:PrepaidAmount>
<cbc:PayableAmount currencyID="EUR">139.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:PrepaidPayment>
<cbc:PaidAmount currencyID="EUR">20.00</cbc:PaidAmount>
</cac:PrepaidPayment><cac:LegalMonetaryTotal>
<cbc:TaxInclusiveAmount currencyID="EUR">119.00</cbc:TaxInclusiveAmount>
<cbc:PrepaidAmount currencyID="EUR">0.00</cbc:PrepaidAmount>
<cbc:PayableAmount currencyID="EUR">119.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:PrepaidPayment>
<cbc:PaidAmount currencyID="EUR">20.00</cbc:PaidAmount>
</cac:PrepaidPayment>