XV-MY-30
A line's subtotal (ItemPriceExtension) is its unit price times its quantity: … 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: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))
Checked with MyInvois e-Invoice