# PEPPOL-T01-R016

Source: https://xmlvalid.com/rules/PEPPOL-T01-R016

> Amount due for payment = Invoice total amount with TAX - Paid amount + Rounding amount.

- Level: error
- Rule sets: Peppol Order rules 3.7
- Context: `cac:AnticipatedMonetaryTotal`
- Test: `if ($taxinclusiveAmount) then ($payableAmount = $taxinclusiveAmount - $prepaidAmount + $roundingAmount) else 1`

Validate a document against these rules: https://xmlvalid.com/validate
