# MYDATA-224

Source: https://xmlvalid.com/rules/MYDATA-224

> Taxes are allowed either per invoice line or per invoice (not in both): this invoice has taxesTotals and taxes on line ….

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoice`
- Test: `empty($taxes) or empty($lines[not(inv:recType = ('2', '3'))][inv:withheldAmount or inv:feesAmount or inv:otherTaxesAmount or inv:stampDutyAmount or inv:deductionsAmount])`

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