SUTF#38250 afwijsopmerking op bestelaanvraagbon

svn path=/Website/branches/v2016.2/; revision=31300
This commit is contained in:
Ruud Lipper
2016-11-01 08:12:13 +00:00
parent 6369907235
commit 15342f7793

View File

@@ -1618,7 +1618,230 @@
</td>
</tr>
</xsl:if>
</xsl:template>
</xsl:template>
<xsl:template match="bestelling" mode="include">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
<TR>
<TD WIDTH="40" ROWSPAN="30" ID="LINKERMARGE"></TD>
<TD>
<table border="0" width="100%" bordercolor="#000000">
<tr>
<td align="left" width="100%" class="caption" colspan="4"><xsl:value-of select="//lcl/BES/bestelaanvraag"/>&#xA0;<xsl:value-of select="key"/>
<xsl:if test="ismutatie=1"> (WIJZIGING)</xsl:if>
<xsl:if test="isretour=1"> (RETOUR)</xsl:if>
</td>
</tr>
<xsl:choose>
<xsl:when test="string(aanvrager/naam_full)!=string(voor/naam_full)">
<tr>
<td width="13%" class="label" align="left"><xsl:value-of select="//lcl/FAC/aanvrager"/></td>
<td width="35%" class="value" align="right">: <xsl:value-of select="aanvrager/naam_full"/></td>
<td width="18%" class="label" align="left" ><xsl:value-of select="//lcl/BES/aanvraagdatum"/></td>
<td width="32%" class="value" align="right">:
<xsl:value-of select="datum/datum"/>&#xA0;
<xsl:value-of select="datum/tijd"/>
</td>
</tr>
<tr>
<td class="label"><xsl:value-of select="//lcl/BES/bestelvoor"/></td>
<td class="value">: <xsl:value-of select="voor/naam_full"/></td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="label" width="13%"><xsl:value-of select="//lcl/FAC/aanvrager"/></td>
<td class="value" width="35%">: <xsl:value-of select="voor/naam_full"/></td>
<td class="label" width="18%"><xsl:value-of select="//lcl/BES/aanvraagdatum"/></td>
<td class="value" width="32%">:
<xsl:value-of select="datum/datum"/>&#xA0;
<xsl:value-of select="datum/tijd"/>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="string(voor/email)!=''">
<tr>
<td class="label"><xsl:value-of select="//lcl/FAC/e-mail"/></td>
<td class="value">: <xsl:value-of select="voor/email"/></td>
<td colspan="2"></td>
</tr>
</xsl:if>
<xsl:choose>
<xsl:when test="voor/telefoonnr!=''">
<tr>
<td class="label"><xsl:value-of select="//lcl/FAC/telefoon"/></td>
<td class="value">: <xsl:value-of select="voor/telefoonnr"/></td>
<td class="label"><xsl:value-of select="//lcl/BES/gewenste_afleverdatum"/></td>
<td class="value">:
<xsl:value-of select="leverdatum/datum"/>
</td>
</tr>
</xsl:when>
<xsl:when test="voor/mobiel!=''">
<tr>
<td class="label"><xsl:value-of select="//lcl/FAC/telefoon"/></td>
<td class="value">: <xsl:value-of select="voor/mobiel"/></td>
<td class="label"><xsl:value-of select="//lcl/BES/gewenste_afleverdatum"/></td>
<td class="value">:
<xsl:value-of select="leverdatum/datum"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="label"><xsl:value-of select="//lcl/FAC/telefoon"/></td>
<td class="value">: -</td>
<td class="label"><xsl:value-of select="//lcl/BES/gewenste_afleverdatum"/></td>
<td class="value">:
<xsl:value-of select="leverdatum/datum"/>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
<tr>
<td class="label" width="13%" align="left"><xsl:value-of select="//lcl/FAC/afdeling"/></td>
<td class="value" width="35%" align="right">:
<xsl:if test="voor/afdeling/omschrijving=''">-</xsl:if>
<xsl:value-of select="voor/afdeling/omschrijving"/>
</td>
<td class="label" width="18%" align="left"><xsl:value-of select="//lcl/BES/aanvraagstatus"/></td>
<td class="value" width="32%" align="right">: <xsl:value-of select="status"/></td>
</tr>
<tr>
<td class="label" width="18%" align="left"><xsl:value-of select="//lcl/FAC/kostenplaats"/></td>
<td class="value" width="32%" align="right">:
<xsl:if test="kostenplaats/nr=''">-</xsl:if>
<xsl:value-of select="kostenplaats/nr"/>
</td>
<xsl:choose>
<xsl:when test="opmerking">
<td class="label" width="18%" align="left"><xsl:value-of select="//lcl/FAC/opmerking"/></td>
<td class="value" width="32%" align="right">:
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="opmerking"/>
</xsl:call-template>
</td>
</xsl:when>
<xsl:otherwise>
<td colspan="2" align="right" width="50%"/>
</xsl:otherwise>
</xsl:choose>
</tr>
<tr>
<td class="label" style="vertical-align:top"><xsl:value-of select="//lcl/BES/afleveradres"/></td>
<td class="value">:
<xsl:value-of select="afleveradres/naam"/>
<xsl:if test="afleveradres/bezoek_adres">
<br/>&#xA0;
<xsl:value-of select="afleveradres/bezoek_adres"/>
<br/>&#xA0;
<xsl:value-of select="afleveradres/bezoek_postcode"/>&#xA0;
<xsl:value-of select="afleveradres/bezoek_plaats"/>
<br/>&#xA0;
<xsl:value-of select="afleveradres/bezoek_land"/>
</xsl:if>
</td>
<td colspan="2"/>
</tr>
<xsl:if test="bestel_opm">
<tr>
<td height="10px" colspan="4"/>
</tr>
<tr>
<td class="label" style="vertical-align:top"><xsl:value-of select="//lcl/FAC/opmerkingen"/></td>
<td class="value" colspan="3">:
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="bestel_opm"/>
</xsl:call-template>
</td>
</tr>
</xsl:if>
<tr>
<td height="20px"/>
</tr>
<xsl:for-each select="kenmerk[count(@xmlnode)=0]">
<xsl:if test="(@type!='L' and @type!='l' and @type!='Q')">
<tr>
<td class="label">
<xsl:value-of select="@naam"/>
</td>
<td class="value" colspan="3">: <xsl:value-of select="."/></td>
</tr>
</xsl:if>
</xsl:for-each>
<tr>
<td height="20px"/>
</tr>
<tr>
<td colspan="4" style="border-top:1px solid #000;"/>
</tr>
<tr>
<td colspan="4">
<table cellpadding="1" cellspacing="0" border="0" bordercolor="#000000" frame="box" width="99%">
<tr>
<th class="besth" style="text-align:left"><xsl:value-of select="//lcl/BES/artikelnr"/></th>
<th class="besth"><xsl:value-of select="//lcl/FAC/omschrijving"/></th>
<th class="besth"><xsl:value-of select="//lcl/FAC/opmerkingen"/></th>
<th class="besth" style="text-align:right"><xsl:value-of select="//lcl/FAC/aantal"/></th>
<th class="besth" style="text-align:right"><xsl:value-of select="//lcl/FAC/prijs"/></th>
<th class="besth" style="text-align:right"><xsl:value-of select="//lcl/FAC/totaal"/></th>
</tr>
<xsl:for-each select="bestelitem">
<tr>
<td class="besresult" style="text-align:left">
&#xA0;<xsl:value-of select="srtdeel/artikel_nummer"/>
</td>
<td class="besresult" style="text-align:left">
<xsl:value-of select="srtdeel/omschrijving"/>
</td>
<td class="besresult">
<xsl:for-each select="kenmerk[count(@xmlnode)=0]">
<xsl:if test="(@type!='L' and @type!='l' and @type!='Q')">
<xsl:value-of select="@naam"/>:
<xsl:value-of select="."/>
<br/>
</xsl:if>
</xsl:for-each>&#xA0;</td>
<td class="besresult" style="text-align:right">
<xsl:value-of select="aantal"/>
</td>
<td class="besresult" style="text-align:right">
<xsl:value-of select="format-number(prijs, '0,00', 'european')"/>
</td>
<td class="besresult" style="text-align:right">
<xsl:value-of select="format-number(aantal*prijs, '0,00', 'european')"/>
</td>
</tr>
</xsl:for-each>
<tr>
<td colspan="6" height="6px" style="border-top:1px solid #000;"/>
</tr>
<xsl:if test="/facilitor/bestelling/levkosten != '0'">
<tr>
<td class="label" style="text-align:right;border-style:solid;border-width:0px;" colspan="5"><xsl:value-of select="//lcl/BES/transportkosten"/>:</td>
<td class="label" style="text-align:right;border-style:solid;border-width:0px;">
<xsl:value-of select="format-number(/facilitor/bestelling/levkosten, '0,00', 'european')"/>
</td>
</tr>
</xsl:if>
<tr>
<td class="tekstkop" style="text-align:right;border-style:solid;border-width:0px;" colspan="5"><xsl:value-of select="//lcl/FAC/totaal"/>:</td>
<td class="tekstkop" style="text-align:right;border-style:solid;border-width:0px;">
<xsl:value-of select="format-number(sum(/facilitor/bestelling/bestelitem/totaal)+ /facilitor/bestelling/levkosten, '0,00', 'european')"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</TD>
<TD WIDTH="30" ROWSPAN="30" ID="RECHTERMARGE"/>
</TR>
</TABLE>
</xsl:template>
<xsl:template match="bestelopdracht" mode="include">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">