MYDATA-306

The rule sets below word this rule differently; each wording is shown with its rule set.

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

Message

Invoice line: …. Sum of classifications are not equal to line's net value: income classifications …, netValue ….

Context
inv:invoiceDetails[inv:incomeClassification]
Test
gr:same($sum, abs(gr:dec(inv:netValue)))

Checked with myDATA 2.0.2

Message

Invoice line: …. Sum of classifications are not equal to line's net value: E3 expense classifications …, netValue ….

Context
inv:invoiceDetails[inv:expensesClassification[starts-with(normalize-space(ecls:classificationType), 'E3_') or ecls:classificationCategory]]
Test
gr:same($sum, abs(gr:dec(inv:netValue)))

Checked with myDATA 2.0.2