Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:variable name="total">
- <xsl:call-template name="sum">
- <xsl:with-param name="events"
- select="$event[substring-before(start/datetime,'T')=$dateJour
- and substring-before(start/datetime,'T')=substring-before(end/datetime,'T')
- and upper-case(summary)=$query/customer/task/@code]" />
- </xsl:call-template>
- </xsl:variable>
- <!-- If amount of work hour is not correct => error -->
- <xsl:variable name="jourSemaine" select="functx:day-of-week($dateJour)" />
- <xsl:if test="not($jourSemaine=6 or $jourSemaine=0 or $dateJour=$query/bank-holiday/@date)
- and (number($total) > number($query/parameter[@name='work-hour-max']/@value)
- or number($total) < number($query/parameter[@name='work-hour-min']/@value))">
- <xsl:text>ERROR_WORK_HOUR;</xsl:text>
- <xsl:value-of select="substring-before(start/datetime,'T')" />
- <xsl:text>;</xsl:text>
- <xsl:text>no-customer;</xsl:text>
- <xsl:text>;</xsl:text>
- <xsl:value-of select="$query/consultant[@calendar-id=$calendar-id]/@code" />
- <xsl:text>;</xsl:text>
- <xsl:value-of select="html-link" />
- <xsl:text>;</xsl:text>
- <!-- <xsl:value-of select="id" /> -->
- <xsl:text>;</xsl:text>
- <xsl:value-of select="$calendar-id" />
- <xsl:text>;</xsl:text>
- </xsl:if>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement