E-invoice error explained
The gross total (BT-112) must be exactly the net total (BT-109) plus VAT (BT-110).
The gross total (BT-112) must be exactly the net total (BT-109) plus VAT (BT-110). Prepayments go in BT-113, rounding amounts in BT-114 and cash discounts in the payment terms (BT-20).
Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).
Source: KoSIT configuration XRechnung 3.0.2 (31 Jan 2026).
Set ram:GrandTotalAmount (BT-112) to ram:TaxBasisTotalAmount plus ram:TaxTotalAmount. Write prepayments to ram:TotalPrepaidAmount (BT-113) and rounding to ram:RoundingAmount (BT-114). The amount to pay goes in ram:DuePayableAmount (BT-115).
Wrong (CII)
<ram:TaxBasisTotalAmount>950.00</ram:TaxBasisTotalAmount>
<ram:TaxTotalAmount currencyID="EUR">180.50</ram:TaxTotalAmount>
<ram:GrandTotalAmount>630.50</ram:GrandTotalAmount>
<!-- 500.00 prepayment subtracted here -->
<ram:DuePayableAmount>630.50</ram:DuePayableAmount>Right (CII)
<ram:TaxBasisTotalAmount>950.00</ram:TaxBasisTotalAmount>
<ram:TaxTotalAmount currencyID="EUR">180.50</ram:TaxTotalAmount>
<ram:GrandTotalAmount>1130.50</ram:GrandTotalAmount>
<ram:TotalPrepaidAmount>500.00</ram:TotalPrepaidAmount>
<ram:DuePayableAmount>630.50</ram:DuePayableAmount>Sales / Project Operations: Sales and Project Operations have no e-invoice output out of the box. In the WBS Invoice Accelerator for Dynamics 365 the Accelerator computes every total of the e-invoice from the lines it writes to the file. If this rule appears for a file from the Accelerator, send the whole message to WBS.
Check your invoice for free. The validator shows every finding with an explanation and its location in the XML.