# MYDATA-226

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

> The sum of fees amount of the invoice lines doesn't match with total fees amount of the invoice: totalFeesAmount …, lines and taxesTotals ….

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoice`
- Test: `gr:same(gr:dec($summary/inv:totalFeesAmount), $fees)`

> The sum of other taxes amount of the invoice lines doesn't match with total other taxes amount of the invoice: totalOtherTaxesAmount …, lines and taxesTotals ….

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoice`
- Test: `gr:same(gr:dec($summary/inv:totalOtherTaxesAmount), $other)`

> The sum of stamp duty amount of the invoice lines doesn't match with total stamp duty amount of the invoice: totalStampDutyAmount …, lines and taxesTotals ….

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoice`
- Test: `gr:same(gr:dec($summary/inv:totalStampDutyAmount), $stamp)`

> The sum of deductions amount of the invoice lines doesn't match with total deductions amount of the invoice: totalDeductionsAmount …, lines and taxesTotals ….

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoice`
- Test: `gr:same(gr:dec($summary/inv:totalDeductionsAmount), $deductions)`

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