MYDATA-306
The rule sets below word this rule differently; each wording is shown with its rule set.
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
Invoice line: …. Sum of classifications are not equal to line's net value: income classifications …, netValue ….
inv:invoiceDetails[inv:incomeClassification]
gr:same($sum, abs(gr:dec(inv:netValue)))
Checked with myDATA 2.0.2
Invoice line: …. Sum of classifications are not equal to line's net value: E3 expense classifications …, netValue ….
inv:invoiceDetails[inv:expensesClassification[starts-with(normalize-space(ecls:classificationType), 'E3_') or ecls:classificationCategory]]
gr:same($sum, abs(gr:dec(inv:netValue)))
Checked with myDATA 2.0.2