# XV-MY-32

Source: https://xmlvalid.com/rules/XV-MY-32

> A line's tax amount is the sum of its tax amounts per tax type: … in line …, not ….

- Level: warning
- Rule sets: MyInvois validations of LHDN (Malaysia) MyInvois SDK of 25 September 2026
- Context: `/*/cac:InvoiceLine`
- Test: `every $t in cac:TaxTotal[cac:TaxSubtotal] satisfies my:near(my:dec($t/cbc:TaxAmount), my:sum($t/cac:TaxSubtotal/cbc:TaxAmount))`

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