# MYDATA-306

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

> Invoice line: …. Sum of classifications are not equal to line's net value: income classifications …, netValue ….

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoiceDetails[inv:incomeClassification]`
- Test: `gr:same($sum, abs(gr:dec(inv:netValue)))`

> Invoice line: …. Sum of classifications are not equal to line's net value: E3 expense classifications …, netValue ….

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoiceDetails[inv:expensesClassification[starts-with(normalize-space(ecls:classificationType), 'E3_') or ecls:classificationCategory]]`
- Test: `gr:same($sum, abs(gr:dec(inv:netValue)))`

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