XV-MY-39
The total including tax (TaxInclusiveAmount) is the total excluding tax plus the total tax amount: …, 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:LegalMonetaryTotal
Test
not($tax and cbc:TaxExclusiveAmount and cbc:TaxInclusiveAmount) or my:near($inclusive, $exclusive + my:dec($tax/cbc:TaxAmount))
Checked with MyInvois e-Invoice