fatalXRechnung 3.0.2 (Germany)profileUBLBT-112BT-113BT-114BT-115
Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) - Paid amount (BT-113) + Rounding amount (BT-114) + Σ Third party payment amount (BT-DEX-002).
The amount due for payment does not equal total with VAT minus paid amount plus rounding, once third-party payments are taken into account.
In the extension, third-party payment amounts also reduce what is due. Recompute BT-115 including them. See BR-CO-16 for the base formula.
UBL — context —
(round((xs:decimal(cbc:PayableAmount) - $payableroundingamount) * 10 * 10) div 100) = (round((xs:decimal(cbc:TaxInclusiveAmount) - $prepaidamount + $thirdpartyprepaidamount) * 10 * 10) div 100)