MYDATA-227
An amount cannot exist (must be null) since its category is null (invoice line …): each of withheldAmount, stampDutyAmount, feesAmount and otherTaxesAmount comes with its category.
error: the document is invalid
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
inv:invoiceDetails
Test
(empty(inv:withheldAmount) or exists(inv:withheldPercentCategory)) and (empty(inv:stampDutyAmount) or exists(inv:stampDutyPercentCategory)) and (empty(inv:feesAmount) or exists(inv:feesPercentCategory)) and (empty(inv:otherTaxesAmount) or exists(inv:otherTaxesPercentCategory))
Checked with myDATA 2.0.2