# XV-MY-31

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

> A line's total excluding tax (LineExtensionAmount) is its subtotal less its discounts plus its charges: … in line …, not ….

- Level: warning
- Rule sets: MyInvois validations of LHDN (Malaysia) MyInvois SDK of 25 September 2026
- Context: `/*/cac:InvoiceLine`
- Test: `not(cac:ItemPriceExtension/cbc:Amount) or my:near(my:dec(cbc:LineExtensionAmount), $subtotal - $allowances + $charges)`

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