# XV-MY-30

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

> A line's subtotal (ItemPriceExtension) is its unit price times its quantity: … in line …, not ….

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

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