# XV-MY-36

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

> The total discount value (AllowanceTotalAmount) is the sum of the invoice's additional discounts: …, not ….

- Level: warning
- Rule sets: MyInvois validations of LHDN (Malaysia) MyInvois SDK of 25 September 2026
- Context: `/*/cac:LegalMonetaryTotal`
- Test: `not(cbc:AllowanceTotalAmount) or my:near($allowance, $allowances)`

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