# MYDATA-229

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

> An amount is not correct according to its category (invoice line: …): ….

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoiceDetails`
- Test: `every $k in ('withheld', 'stampDuty', 'fees') satisfies (let $amount := *[local-name() = concat($k, 'Amount')], $r := gr:tax-rate($k, normalize-space(*[local-name() = concat($k, 'PercentCategory')])) return empty($amount) or empty($r) or abs(gr:dec($amount) - round($net * $r, 2)) le 0.01)`

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