# XV-MY-41

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

> The total tax amount is the sum of the tax amounts per tax type: …, not ….

- Level: warning
- Rule sets: MyInvois validations of LHDN (Malaysia) MyInvois SDK of 25 September 2026
- Context: `/*/cac:TaxTotal`
- Test: `not(cac:TaxSubtotal) or my:near(my:dec(cbc:TaxAmount), my:sum(cac:TaxSubtotal/cbc:TaxAmount))`

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