Amount due for payment = Invoice total amount with VAT - Paid amount + Rounding amount.
cac:AnticipatedMonetaryTotal
if ($taxinclusiveAmount) then ($payableAmount = $taxinclusiveAmount - $prepaidAmount + $roundingAmount) else 1