# MYDATA-246

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

> Invoice of type 1.5 must have at least one line with detailtype = 1 and one with detail type=2.

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoice`
- Test: `$type != '1.5' or ($lines/inv:invoiceDetailType = '1' and $lines/inv:invoiceDetailType = '2')`

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