# XV-MY-40

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

> The total payable amount (PayableAmount) is the total including tax less the prepayment plus the rounding amount: …, not ….

- Level: warning
- Rule sets: MyInvois validations of LHDN (Malaysia) MyInvois SDK of 25 September 2026
- Context: `/*/cac:LegalMonetaryTotal`
- Test: `not(cbc:TaxInclusiveAmount) or my:near(my:dec(cbc:PayableAmount), $inclusive - $prepaid + my:dec(cbc:PayableRoundingAmount))`

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