# MYDATA-269

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

> In case of fuelInvoice, the net value of the invoice line with fuelCode 999 must be less or equal than sum of net values of the other invoice lines.

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoice`
- Test: `empty($lines[normalize-space(inv:fuelCode) = '999']) or gr:sum($lines[normalize-space(inv:fuelCode) = '999']/inv:netValue) le gr:sum($lines[inv:fuelCode and normalize-space(inv:fuelCode) != '999']/inv:netValue)`

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