RequestedPublicationDate BT-738 Ersatzregel unterschiedlich zu EU
In der BT-738 Ersatzregel für die zu ersetzende Regel der EU wird der unterschied zwischen requestedPublicationDate und issueDate in eforms-DE Schematron anders berechnet als in den eforms-EU Schematron.
de-1.0
<assert id="SR-BT-738-P60D" test="xs:date(.) - xs:date($DISPATCH-DATE-NODE) le xs:dayTimeDuration('P92D')">[SR-BT-738-P60D](<name/>) must not be more than 92 days after IssueDate due to TED requirements. <value-of select="concat('Current IssueDate=',xs:date($DISPATCH-DATE-NODE),' and RequestedPublicationDate=', xs:date(.), ' have a difference of ' , days-from-duration( xs:date(.) - xs:date($DISPATCH-DATE-NODE)), ' days.')"/></assert>
de-1.1
<assert id="SR-BT-738-P60D" test="xs:date(.) - xs:date($DISPATCH-DATE-NODE) le xs:dayTimeDuration('P60D')">[SR-BT-738-P60D](<name/>) must not be more than 60 days after IssueDate due to TED requirements. <value-of select="concat('Current IssueDate=',xs:date($DISPATCH-DATE-NODE),' and RequestedPublicationDate=', xs:date(.), ' have a difference of ' , days-from-duration( xs:date(.) - xs:date($DISPATCH-DATE-NODE)), ' days.')"/></assert>
eu-1.5
<assert id="BR-BT-00738-0053" role="ERROR" diagnostics="BT-738-notice" test="((boolean(for $T in (current-date()) return ($T + xs:dayTimeDuration(cbc:RequestedPublicationDate/xs:date(text()) - cbc:IssueDate/xs:date(text())) < $T + xs:dayTimeDuration('P92D')))) and (cbc:RequestedPublicationDate/xs:date(text()) > cbc:IssueDate/xs:date(text()))) or not(cbc:RequestedPublicationDate)">rule|text|BR-BT-00738-0053</assert>
eu-1.7
<assert id="BR-BT-00738-0053" role="ERROR" diagnostics="BT-738-notice" test="((boolean(for $T in (current-date()) return ($T + xs:dayTimeDuration(cbc:RequestedPublicationDate/xs:date(text()) - cbc:IssueDate/xs:date(text())) < $T + xs:dayTimeDuration('P60D')))) and (boolean(for $T in (current-date()) return ($T + xs:dayTimeDuration(cbc:RequestedPublicationDate/xs:date(text()) - cbc:IssueDate/xs:date(text())) >= $T + xs:dayTimeDuration('P2D'))))) or not(cbc:RequestedPublicationDate)">rule|text|BR-BT-00738-0053</assert>
Current Behaviour:
eforms-eu allows 2-59 days or 2-91 days of difference between issueDate and requestedPublicationDate and eforms-DE allows 0-60 and 0-92 days of difference
Expected Behaviour:
eforms-eu allows 2-59 days or 2-91 days of difference between issueDate and requestedPublicationDate and eforms-DE allows 0-59 and 0-91 days of difference