XV-MY-31
A line's total excluding tax (LineExtensionAmount) is its subtotal less its discounts plus its charges: … in line …, not ….
warning: reported, still valid
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
Context
/*/cac:InvoiceLine
Test
not(cac:ItemPriceExtension/cbc:Amount) or my:near(my:dec(cbc:LineExtensionAmount), $subtotal - $allowances + $charges)
Checked with MyInvois e-Invoice