Description
Hi,
we currently use the accept flag calculated by the validator in a webservice. The validator sets the flag to REJECTED if there is a failed assertion, even if it's only a warning
.anyMatch(FailedAssert.class::isInstance)
In the default-report.xml though, the calculation of the recommendation differs from the calculation of the validator. There, only real errors will lead to a reject recommendation. The invoice may contain warnings which are not taken into account here.
In the end the xml-report says "accept" although the report-result says "reject"
select="count(//rep:message[@level eq 'error'])"
select="count(//rep:message[rep:custom-level(.) eq 'error'])"
validator-configuration-xrechnung/src/default-report.xsl
Lines 743 to 766 in 1e62a80
We are wondering if this discrepancy is intended, since the report-result and generated xml-report say something different.
Activity