RABO#54387 -- Interface Rabo-facilitor / Kuijpers
svn path=/Website/branches/v2019.1/; revision=42959
This commit is contained in:
@@ -4,6 +4,15 @@
|
||||
<xsl:decimal-format name="european" decimal-separator="." grouping-separator=","/>
|
||||
<xsl:param name="mode"/>
|
||||
|
||||
<xsl:template name="notNull">
|
||||
<xsl:param name="waarde"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$waarde!=''"><xsl:value-of select="$waarde"/></xsl:when>
|
||||
<xsl:otherwise>0</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Maken 'bon' (XML) -->
|
||||
<xsl:template match="status">
|
||||
<xsl:element name="facilitor">
|
||||
@@ -28,10 +37,16 @@
|
||||
<status></status>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<uren><xsl:value-of select="uren"/></uren>
|
||||
<uurloon><xsl:value-of select="uurloon"/></uurloon>
|
||||
<materiaal><xsl:value-of select="materiaal"/></materiaal>
|
||||
<kosten><xsl:value-of select="kosten"/></kosten>
|
||||
<xsl:if test="uren or uurloon or materiaal or correctie">
|
||||
<xsl:variable name="uren"><xsl:call-template name="notNull"><xsl:with-param name="waarde" select="uren"/></xsl:call-template></xsl:variable>
|
||||
<xsl:variable name="uurloon"><xsl:call-template name="notNull"><xsl:with-param name="waarde" select="uurloon"/></xsl:call-template></xsl:variable>
|
||||
<xsl:variable name="materiaal"><xsl:call-template name="notNull"><xsl:with-param name="waarde" select="materiaal"/></xsl:call-template></xsl:variable>
|
||||
<xsl:variable name="correctie"><xsl:call-template name="notNull"><xsl:with-param name="waarde" select="correctie"/></xsl:call-template></xsl:variable>
|
||||
<uren><xsl:value-of select="$uren"/></uren>
|
||||
<uurloon><xsl:value-of select="$uurloon"/></uurloon>
|
||||
<materiaal><xsl:value-of select="$materiaal"/></materiaal>
|
||||
<kosten><xsl:value-of select="($uren*$uurloon)+$materiaal+$correctie"/></kosten>
|
||||
</xsl:if>
|
||||
<xsl:if test="startingDate and startingTime and startingDate != '' and startingTime != ''">
|
||||
<plandatum><xsl:value-of select="concat(startingDate,'T',startingTime)"/></plandatum>
|
||||
</xsl:if>
|
||||
|
||||
Reference in New Issue
Block a user