# PEPPOL-T01-R017

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

> Expected total amount with TAX = Expected total amount without TAX + Order total TAX amount.

- Level: error
- Rule sets: Peppol Order rules 3.7
- Context: `cac:AnticipatedMonetaryTotal`
- Test: `if($taxinclusiveAmount and /ubl:Order/cac:TaxTotal) then ($taxinclusiveAmount = $taxexclusiveAmount + $TAXamount) else 1`

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