756 lines
33 KiB
XML
756 lines
33 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
|
|
<xsl:import href="../../../appl/shared/default.xsl"/>
|
|
<xsl:variable name="Rev">
|
|
<!-- Revision van deze cust.xsl -->
|
|
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name="Xsrtnotificatiecode">RESINF</xsl:variable>
|
|
|
|
<xsl:template name="stylesheet">
|
|
<style>
|
|
body {
|
|
font-family: Verdana;
|
|
background-color: rgb(255, 255, 255);
|
|
margin-left:8px;
|
|
margin-top:8px;
|
|
cursor: auto;
|
|
color: #000;
|
|
font-size: 9pt;
|
|
}
|
|
|
|
table {
|
|
border: 0;
|
|
}
|
|
|
|
table.details {
|
|
background-color: #31398C;
|
|
}
|
|
|
|
th {
|
|
font-family: Verdana;
|
|
font-size: 9pt;
|
|
font-weight: normal;
|
|
color: #ffffff;
|
|
text-decoration: none;
|
|
padding-left: 3px;
|
|
padding-right: 3px;
|
|
padding-top: 3px;
|
|
padding-bottom: 3px;
|
|
background-color: #31398C;
|
|
}
|
|
|
|
th.resth {
|
|
font-family: Verdana;
|
|
font-size: 9pt;
|
|
font-weight: normal;
|
|
color: #000;
|
|
text-decoration: none;
|
|
padding-left: 3px;
|
|
padding-right: 3px;
|
|
padding-top: 3px;
|
|
padding-bottom: 3px;
|
|
background-color: #fff;
|
|
}
|
|
|
|
td, p {
|
|
font-family: Verdana;
|
|
font-style: normal;
|
|
font-size: 8pt;
|
|
font-weight: normal;
|
|
color: #000000;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
td.result {
|
|
text-decoration: none;
|
|
padding-bottom: 2px;
|
|
padding-top: 2px;
|
|
padding-left: 2px;
|
|
padding-right: 2px;
|
|
background-color: #D6D8E8;
|
|
}
|
|
|
|
td.resresult {
|
|
text-decoration: none;
|
|
padding-bottom: 2px;
|
|
padding-top: 2px;
|
|
padding-left: 2px;
|
|
padding-right: 2px;
|
|
background-color: #fff;
|
|
}
|
|
|
|
td.sec_heading {
|
|
font-size: 9pt;
|
|
text-decoration: none;
|
|
padding-bottom: 2px;
|
|
padding-top: 2px;
|
|
padding-left: 2px;
|
|
padding-right: 2px;
|
|
text-align: left;
|
|
background-color: #d0d0d0;
|
|
}
|
|
|
|
td.caption {
|
|
font-size: 18pt;
|
|
padding-bottom: 30px;
|
|
padding-top: 40px;
|
|
}
|
|
|
|
td.subcaption {
|
|
font-size: 10pt;
|
|
font-weight: bold;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
td.label {
|
|
font-size: 10pt;
|
|
}
|
|
|
|
td.value {
|
|
font-style: italic;
|
|
font-size: 10pt;
|
|
}
|
|
|
|
td.tekst {
|
|
font-size: 10pt;
|
|
}
|
|
|
|
td.adres {
|
|
font-size: 8pt;
|
|
text-align: right;
|
|
}
|
|
|
|
td.tekstkop {
|
|
font-weight: bold;
|
|
font-size: 10pt;
|
|
}
|
|
|
|
td.tiny {
|
|
font-size: 6pt;
|
|
text-align: right;
|
|
}
|
|
|
|
.fatal {
|
|
background-color: red;
|
|
color: white;
|
|
font-weight: bold;
|
|
padding-left: 2px;
|
|
padding-right: 2px;
|
|
}
|
|
</style>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="pageheader">
|
|
<table border="0" width="100%">
|
|
<tr>
|
|
<td width="34%">
|
|
<xsl:choose>
|
|
<xsl:when test="$mode='email'">
|
|
<img src="cid:tmpl_logo.gif"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:element name="img">
|
|
<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/tmpl_logo.gif</xsl:attribute>
|
|
</xsl:element>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</td>
|
|
<td width="33%"></td>
|
|
<td width="33%" style="text-align:right">
|
|
<b><xsl:value-of select="//lcl/FAC/printdatum"/>: </b><xsl:value-of select="//header/dateTime"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="res_begintext">
|
|
<tr>
|
|
<td colspan="4" class="tekst">
|
|
<xsl:choose>
|
|
<!-- District 21 = Heerlen -->
|
|
<xsl:when test="rsv_ruimte/contact_user/werkplek/plaats/regio/district/key=21">
|
|
<br/>Beste campusbewoner,
|
|
<br/><br/>Bedankt voor uw reservering. Is deze reservering nog actueel? Zo niet, graag contact opnemen met de receptie Smart Services Campus (+316-51559065 of receptie.smartservices@brightlands.com).
|
|
<br/><br/>Dank voor uw medewerking.
|
|
<br/><br/>Met vriendelijke groet,
|
|
<br/><br/>Brightlands Smart Services Campus
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:choose>
|
|
<xsl:when test="//language='NL'">
|
|
<br/>Beste campusbewoner,
|
|
<br/><br/>Bedankt voor uw reservering. Is deze reservering nog actueel? Zo niet, deze reservering graag in facilitor annuleren of contact opnemen met de receptie Center Court (088-9995700 of reception.ccampus@brightlands.com).
|
|
<br/><br/>Dank voor uw medewerking.
|
|
<br/><br/>Uw Brightlands Servicedesk team
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<br/>Dear campusresident,
|
|
<br/><br/>Thanks for your reservation. Is this reservation still actual? When not, please delete this reservation in facilitor or contact reception Center Court (088-9995700 or reception.ccampus@brightlands.com.
|
|
<br/><br/>Thanks in advanced.
|
|
<br/><br/>Your Brightlands Servicedesk team
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<br/><br/>
|
|
</td>
|
|
</tr>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="melding" mode="include">
|
|
<xsl:variable name="slatijd">
|
|
<xsl:choose>
|
|
<xsl:when test="uitvoertijd[@eenheid='U']"><xsl:value-of select="uitvoertijd"/> <xsl:value-of select="//lcl/MLD/uren"/></xsl:when>
|
|
<xsl:otherwise><xsl:value-of select="uitvoertijd"/> <xsl:value-of select="//lcl/FAC/dagen"/></xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
<table border="0" width="100%">
|
|
<tr>
|
|
<td colspan="4">
|
|
<xsl:choose>
|
|
<xsl:when test="$srtnotificatiecode='MLDACP'">
|
|
<br/><br/>Beste <xsl:value-of select="voor/naam_friendly"/>,
|
|
<br/><br/>Hartelijk dank voor het registreren van je melding. De melding is in goede orde ontvangen en wordt door ons in behandeling genomen.
|
|
</xsl:when>
|
|
<xsl:when test="$srtnotificatiecode='MLDAFM'">
|
|
<br/><br/>Beste <xsl:value-of select="voor/naam_friendly"/>,
|
|
<br/><br/>Je melding is door ons afgehandeld. Hieronder tref je een korte beschrijving aan.
|
|
</xsl:when>
|
|
<xsl:otherwise/>
|
|
</xsl:choose>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="caption" style="padding-top:20px;padding-bottom:20px">
|
|
<b><xsl:value-of select="//lcl/MLD/melding"/> <xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></b>
|
|
</td>
|
|
<td colspan="2" class="caption" style="padding-top:20px;padding-bottom:20px">
|
|
<xsl:if test="spoed<3"><b><xsl:value-of select="//lcl/MLD/spoed"/></b></xsl:if>
|
|
</td>
|
|
</tr>
|
|
<xsl:if test="not(//opdracht/extra_key) and extra_key">
|
|
<xsl:variable name="mx_key"><xsl:value-of select="extra_key"/></xsl:variable>
|
|
<tr>
|
|
<td align="right" valign="top" style="padding-top:10px;">
|
|
<b><xsl:value-of select="//lcl/FAC/bericht"/>:</b>
|
|
</td>
|
|
<td colspan="3" style="padding-top:10px;">
|
|
<xsl:call-template name="linebreaks">
|
|
<xsl:with-param name="string" select="notes/note[key=$mx_key]/omschrijving"/>
|
|
</xsl:call-template>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4" style="padding-bottom:20px;">
|
|
<hr/>
|
|
</td>
|
|
</tr>
|
|
</xsl:if>
|
|
<tr>
|
|
<td width="18%"><br/><b><xsl:value-of select="//lcl/FAC/aanvrager"/>:</b></td>
|
|
<td width="32%"><br/><xsl:value-of select="voor/naam_friendly"/></td>
|
|
<td width="18%"><br/><b><xsl:value-of select="//lcl/FAC/telefoon"/>:</b></td>
|
|
<td width="32%"><br/><xsl:choose><xsl:when test="voor/telefoonnr!=''"><xsl:value-of select="voor/telefoonnr"/></xsl:when><xsl:otherwise><xsl:value-of select="voor/mobiel"/></xsl:otherwise></xsl:choose></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"/>
|
|
<td><b><xsl:value-of select="//lcl/FAC/afdeling"/>:</b></td>
|
|
<td><xsl:value-of select="voor/afdeling/omschrijving"/></td>
|
|
</tr>
|
|
<tr><td colspan="4"><hr/></td></tr>
|
|
<tr>
|
|
<td><b><xsl:value-of select="//lcl/FAC/locatie"/>:</b></td>
|
|
<td><xsl:value-of select="plaats/regio/district/locatie/code"/> (<xsl:value-of select="plaats/regio/district/locatie/omschrijving"/>)</td>
|
|
<td><b><xsl:value-of select="//lcl/MLD/status"/>:</b></td>
|
|
<td><xsl:value-of select="status"/></td>
|
|
</tr>
|
|
<tr>
|
|
<xsl:choose>
|
|
<xsl:when test="plaats/@type='T'">
|
|
<td><b><xsl:value-of select="//lcl/FAC/terrein"/>:</b></td>
|
|
<td>
|
|
<xsl:value-of select="plaats/regio/district/locatie/terrein/code"/> 
|
|
<xsl:if test="plaats/regio/district/locatie/terrein/naam!=''">(<xsl:value-of select="plaats/regio/district/locatie/terrein/naam"/>)</xsl:if>
|
|
</td>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<td><b><xsl:value-of select="//lcl/FAC/gebouw"/>:</b></td>
|
|
<td>
|
|
<xsl:value-of select="plaats/regio/district/locatie/gebouw/code"/> 
|
|
<xsl:if test="plaats/regio/district/locatie/gebouw/naam!=''">(<xsl:value-of select="plaats/regio/district/locatie/gebouw/naam"/>)</xsl:if>
|
|
</td>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<td><b><xsl:value-of select="//lcl/MLD/melddatum"/>:</b></td>
|
|
<td><xsl:value-of select="gemeld/datum"/> <xsl:value-of select="gemeld/tijd"/></td>
|
|
</tr>
|
|
<tr>
|
|
<xsl:choose>
|
|
<xsl:when test="plaats/regio/district/locatie/gebouw/verdieping!=''">
|
|
<td><b><xsl:value-of select="//lcl/FAC/bouwlaag"/>:</b></td>
|
|
<td><xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/code"/></td>
|
|
</xsl:when>
|
|
<xsl:otherwise><td colspan="2"/></xsl:otherwise>
|
|
</xsl:choose>
|
|
<td><b><xsl:value-of select="//lcl/MLD/uitvoertijd"/>:</b></td>
|
|
<td><xsl:value-of select="$slatijd"/></td>
|
|
</tr>
|
|
<tr>
|
|
<xsl:choose>
|
|
<xsl:when test="plaats/regio/district/locatie/gebouw/verdieping/ruimte!=''">
|
|
<td><b><xsl:value-of select="//lcl/FAC/ruimte"/>:</b></td>
|
|
<td>
|
|
<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/ruimte/nr"/> 
|
|
<xsl:if test="plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving!=''">(<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving"/>)</xsl:if>
|
|
</td>
|
|
</xsl:when>
|
|
<xsl:otherwise><td colspan="2"/></xsl:otherwise>
|
|
</xsl:choose>
|
|
<td><b><xsl:value-of select="//lcl/MLD/datum_gereed"/>:</b></td>
|
|
<td><xsl:value-of select="datum_gepland/datum"/> <xsl:value-of select="datum_gepland/tijd"/></td>
|
|
</tr>
|
|
<tr><td colspan="4"><hr/></td></tr>
|
|
<tr>
|
|
<td><b><xsl:value-of select="//lcl/MLD/stdmelding"/>:</b></td>
|
|
<td><xsl:value-of select="stdmelding/omschrijving"/></td>
|
|
<td><b><xsl:value-of select="//lcl/MLD/vakgroep"/>:</b></td>
|
|
<td><xsl:value-of select="discipline/omschrijving"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><xsl:value-of select="//lcl/FAC/omschrijving"/>:</b></td>
|
|
<td colspan="3"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="omschrijving"/></xsl:call-template></td>
|
|
</tr>
|
|
<xsl:for-each select="kenmerk[@type!='L' and @type!='l' and @type!='Q' and count(@xmlnode)=0]">
|
|
<xsl:sort select="@volgnummer" data-type="number"/>
|
|
<xsl:if test=".!=''">
|
|
<tr>
|
|
<td><b><xsl:value-of select="@naam"/>:</b></td>
|
|
<td colspan="3"><xsl:value-of select="."/></td>
|
|
</tr>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
<xsl:if test="count(deel)>0">
|
|
<xsl:for-each select="deel">
|
|
<xsl:sort select="omschrijving"/>
|
|
<tr>
|
|
<xsl:choose>
|
|
<xsl:when test="position()=1"><td><b><xsl:value-of select="//lcl/MLD/objecten"/>:</b></td></xsl:when>
|
|
<xsl:otherwise><td/></xsl:otherwise>
|
|
</xsl:choose>
|
|
<td colspan="3"><xsl:value-of select="omschrijving"/></td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
</xsl:if>
|
|
<xsl:if test="behandelwijze=2">
|
|
<xsl:for-each select="notes/note[flag=1]">
|
|
<xsl:sort select="aanmaak/timestamp" order="ascending"/>
|
|
<tr>
|
|
<xsl:choose>
|
|
<xsl:when test="position() = 1">
|
|
<td align="right" valign="top">
|
|
<b><xsl:value-of select="//lcl/MLD/behandeling"/>:</b>
|
|
</td>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<td/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<td colspan="3">
|
|
<span class="mldbeh"><xsl:value-of select="aanmaak/datum"/> <xsl:value-of select="aanmaak/tijd"/> - <xsl:value-of select="noteur/naam_friendly"/></span> 
|
|
<xsl:call-template name="linebreaks">
|
|
<xsl:with-param name="string" select="omschrijving"/>
|
|
</xsl:call-template>
|
|
</td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
</xsl:if>
|
|
<xsl:if test="opmerking!=''">
|
|
<tr>
|
|
<td><b><xsl:value-of select="//lcl/MLD/afhandeling"/>:</b></td>
|
|
<td colspan="3"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="opmerking"/></xsl:call-template></td>
|
|
</tr>
|
|
</xsl:if>
|
|
<tr height="20px"><td colspan="4"/></tr>
|
|
<tr>
|
|
<td colspan="4">
|
|
<xsl:choose>
|
|
<xsl:when test="$srtnotificatiecode='MLDACP'">
|
|
<br/><br/>De meest actuele status van de melding kun je vinden door <a href="https://blcc.facilitor.nl"><nobr>hier</nobr></a> te klikken.
|
|
<br/><br/>Met vriendelijke groet,
|
|
<br/>Brightlands Servicedesk
|
|
</xsl:when>
|
|
<xsl:when test="$srtnotificatiecode='MLDAFM'">
|
|
<br/><br/>De meest actuele status van de melding kun je vinden door <a href="https://blcc.facilitor.nl"><nobr>hier</nobr></a> te klikken.
|
|
<br/><br/>Met vriendelijke groet,
|
|
<br/>Brightlands Servicedesk
|
|
</xsl:when>
|
|
<xsl:otherwise/>
|
|
</xsl:choose>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="opdracht" mode="include">
|
|
<table border="0" width="100%" cellpadding="2">
|
|
<tr>
|
|
<td colspan="4" class="caption" style="padding-top:20px;padding-bottom:20px">
|
|
<b>
|
|
<xsl:choose>
|
|
<xsl:when test="statusopdr_key = 10 and statusopdr_key_refiat > 0">
|
|
<xsl:value-of select="//lcl/MLD/hergoedkeuring"/>: 
|
|
</xsl:when>
|
|
<xsl:when test="(statusopdr_key = 3 or statusopdr_key = 4) and statusopdr_key_refiat > 0">
|
|
<xsl:value-of select="//lcl/MLD/herfiattering"/>: 
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
<xsl:value-of select="opdrachttype/omschrijving"/> 
|
|
<xsl:value-of select="melding/stdmelding/discipline/srtdiscipline/prefix"/>
|
|
<xsl:value-of select="melding/key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/>
|
|
</b>
|
|
</td>
|
|
</tr>
|
|
<xsl:if test="extra_key">
|
|
<xsl:variable name="ox_key"><xsl:value-of select="extra_key"/></xsl:variable>
|
|
<tr>
|
|
<td align="right" valign="top" style="padding-top:15px;padding-bottom:10px;">
|
|
<b><xsl:value-of select="//lcl/FAC/bericht"/>:</b>
|
|
</td>
|
|
<td colspan="5" style="padding-top:15px;padding-bottom:10px;">
|
|
<xsl:call-template name="linebreaks"><xsl:with-param name="string" select="notes/note[key=$ox_key]/omschrijving"/></xsl:call-template>
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="6" style="padding-bottom:15px;"><hr/></td></tr>
|
|
</xsl:if>
|
|
<tr>
|
|
<td width="16%"/>
|
|
<td width="17%"/>
|
|
<td width="17%"/>
|
|
<td width="16%" align="right"><b><xsl:value-of select="//lcl/FAC/bedrijf"/>:</b></td>
|
|
<td width="17%"><xsl:value-of select="uitvoerende/bedrijf/naam"/></td>
|
|
<td width="17%"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/FAC/contactpersoon"/>:</b></td>
|
|
<td><xsl:value-of select="contactpersoon/naam_full"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/FAC/telefoon"/>:</b></td>
|
|
<td><xsl:value-of select="contactpersoon/telefoon1"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/FAC/adres"/>:</b></td>
|
|
<td><xsl:value-of select="uitvoerende/bedrijf/post_adres"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/FAC/plaats"/>:</b></td>
|
|
<td><xsl:value-of select="uitvoerende/bedrijf/post_plaats"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right"><b><xsl:value-of select="//lcl/FAC/contactpersoon"/>:</b></td>
|
|
<td align="left"><xsl:value-of select="backoffice_contact/naam_full"/></td>
|
|
<td colspan="3"/>
|
|
</tr>
|
|
<tr>
|
|
<td align="right"><b><xsl:value-of select="//lcl/FAC/telefoon"/>:</b></td>
|
|
<td align="left"><xsl:value-of select="backoffice_contact/telefoonnr"/></td>
|
|
<td align="left"></td>
|
|
<td align="right"><b><xsl:value-of select="//lcl/FAC/kostenplaats"/>:</b></td>
|
|
<td align="left"><xsl:value-of select="kostenplaats/nr"/></td>
|
|
</tr>
|
|
<xsl:if test="melding/kenmerk[@naam='Ordernr']!=''">
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/MLD/ordernr"/>:</b></td>
|
|
<td align="left"><xsl:value-of select="melding/kenmerk[@naam='Ordernr']"/></td>
|
|
</tr>
|
|
</xsl:if>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/MLD/datum_gereed"/></b></td>
|
|
<td align="left"><xsl:value-of select="datumgereed/datum"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/MLD/datum_verzonden"/>:</b></td>
|
|
<td align="left"><xsl:value-of select="datumverzonden/datum"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/MLD/status"/>:</b></td>
|
|
<td align="left"><xsl:value-of select="status"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" valign="top"><b><xsl:value-of select="//lcl/FAC/omschrijving"/>:</b></td>
|
|
<td align="left" colspan="3"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="omschrijving"/></xsl:call-template></td>
|
|
</tr>
|
|
<tr><td colspan="6"><hr/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="6" align="center">
|
|
<table width="100%" style="background-color:#EEEEEE;border: 1px solid blue">
|
|
<tr><td><xsl:apply-templates select="melding" mode="include"/></td></tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="6" height="30px" valign="center"><hr/></td></tr>
|
|
<xsl:variable name="arbeid" select="uren*uurloon"/>
|
|
<xsl:variable name="arbeid_refiat" select="uren_refiat*uurloon_refiat"/>
|
|
<tr>
|
|
<td align="right"><b><xsl:value-of select="//lcl/MLD/uren"/>:</b></td>
|
|
<td><xsl:value-of select="format-number(uren, '0,00', 'european')"/><b> à </b>€ <xsl:value-of select="format-number(uurloon, '0,00', 'european')"/></td>
|
|
<td style="width:2in;text-align:left">
|
|
<xsl:if test="statusopdr_key_refiat > 0">
|
|
(<xsl:value-of select="//lcl/MLD/was"/> <xsl:value-of select="format-number(uren, '0,00', 'european')"/><b> à </b>€ <xsl:value-of select="format-number(uurloon, '0,00', 'european')"/>)
|
|
</xsl:if>
|
|
</td>
|
|
<td align="right"><b><xsl:value-of select="//lcl/MLD/arbeid"/>:</b></td>
|
|
<td style="width:1in;text-align:right">€ <xsl:value-of select="format-number($arbeid, '0,00', 'european')"/></td>
|
|
<td style="width:1in;text-align:right">
|
|
<xsl:if test="statusopdr_key_refiat > 0">
|
|
(<xsl:value-of select="//lcl/MLD/was"/> € <xsl:value-of select="format-number($arbeid_refiat, '0,00', 'european')"/>)
|
|
</xsl:if>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/MLD/materiaal"/>:</b></td>
|
|
<td style="width:1in;text-align:right">€ <xsl:value-of select="format-number(materiaal, '0,00', 'european')"/></td>
|
|
<td style="width:1in;text-align:right">
|
|
<xsl:if test="statusopdr_key_refiat > 0">
|
|
(<xsl:value-of select="//lcl/MLD/was"/> € <xsl:value-of select="format-number(materiaal_refiat, '0,00', 'european')"/>)
|
|
</xsl:if>
|
|
</td>
|
|
</tr>
|
|
<xsl:variable name="correctie0" select="$arbeid + materiaal"/>
|
|
<xsl:variable name="correctie" select="kosten - $correctie0"/>
|
|
<xsl:variable name="correctie0_refiat" select="$arbeid_refiat + materiaal_refiat"/>
|
|
<xsl:variable name="correctie_refiat" select="kosten_refiat - $correctie0_refiat"/>
|
|
<xsl:if test="$correctie!=0">
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/MLD/correctie"/>:</b></td>
|
|
<td style="width:1in;text-align:right">€ <xsl:value-of select="format-number($correctie, '0,00', 'european')"/></td>
|
|
<td style="width:1in;text-align:right">
|
|
<xsl:if test="statusopdr_key_refiat > 0">
|
|
(<xsl:value-of select="//lcl/MLD/was"/> € <xsl:value-of select="format-number($correctie_refiat, '0,00', 'european')"/>)
|
|
</xsl:if>
|
|
</td>
|
|
</tr>
|
|
</xsl:if>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td align="right"><b><xsl:value-of select="//lcl/FAC/totaal"/>:</b></td>
|
|
<td style="width:1in;text-align:right"><b>€ <xsl:value-of select="format-number(kosten, '0,00', 'european')"/></b></td>
|
|
<td style="width:1in;text-align:right">
|
|
<xsl:if test="statusopdr_key_refiat > 0">
|
|
(<xsl:value-of select="//lcl/MLD/was"/> € <xsl:value-of select="format-number(kosten_refiat, '0,00', 'european')"/>)
|
|
</xsl:if>
|
|
</td>
|
|
</tr>
|
|
<xsl:if test="$srtnotificatiecode='MLDAP1' or $srtnotificatiecode='ORDGOE'">
|
|
<tr>
|
|
<td colspan="6" style="padding-top:20px;">
|
|
<xsl:element name="a"><xsl:attribute name="href">https://<xsl:value-of select="$FacilitorRoot"/>?<xsl:value-of select="../bookmarks/opdracht"/><xsl:value-of select="key"/>&sso=2</xsl:attribute><span style="font-size:15px;">klik hier om de opdracht goed te keuren</span></xsl:element>
|
|
</td>
|
|
</tr>
|
|
</xsl:if>
|
|
</table>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="rapport">
|
|
<style>.pagebreak {
|
|
page-break-after: always;
|
|
}</style>
|
|
<xsl:if test="@view='BLCC_V_FACT_ACTUAL' or @view='BLCC_V_FACT_FROZEN'">
|
|
<html>
|
|
<xsl:call-template name="htmlhead"/>
|
|
<body>
|
|
<table border="0" style="width:100%;border-collapse:collapse;" cellpadding="3" cellspacing="3">
|
|
<colgroup>
|
|
<col width="20%"/>
|
|
<col width="15%"/>
|
|
<col width="15%"/>
|
|
<col width="20%"/>
|
|
<col width="15%"/>
|
|
<col width="15%"/>
|
|
</colgroup>
|
|
|
|
<tr>
|
|
<td colspan="3">
|
|
<b>Chemelot Campus Vastgoed C.V.</b>
|
|
<br/>Postbus 18, 6160 MD Geleen
|
|
<br/>Urmonderbaan 22, 6167 RD Geleen
|
|
<br/>Phone: +31 (0) 88 99 95705
|
|
<br/>Mail: <a href="mailto:Marie-Jose.Douven@brightlands.com"><nobr>Marie-Jose.Douven@brightlands.com</nobr></a>
|
|
<br/>Chamber of Commerce: 56268556
|
|
</td>
|
|
<td colspan="3" style="text-align:right">
|
|
<xsl:choose>
|
|
<xsl:when test="$mode='email'"><img src="cid:tmpl_logo.gif"/></xsl:when>
|
|
<xsl:otherwise><xsl:element name="img"><xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/tmpl_logo.gif</xsl:attribute></xsl:element></xsl:otherwise>
|
|
</xsl:choose>
|
|
</td>
|
|
</tr>
|
|
|
|
<xsl:choose>
|
|
<xsl:when test="count(rapport_data/data_row)=0">
|
|
<tr><td class="tekst"><center><br/><b>Geen gegevens gevonden</b></center></td></tr>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
|
|
<xsl:variable name="min_bedrijf">
|
|
<xsl:for-each select="rapport_data/data_row">
|
|
<xsl:sort select="PRS_BEDRIJF_KEY"/>
|
|
<xsl:if test="position()=1">
|
|
<xsl:value-of select="PRS_BEDRIJF_KEY"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name="max_factuur">
|
|
<xsl:for-each select="rapport_data/data_row">
|
|
<xsl:sort select="PRS_BEDRIJF_KEY"/>
|
|
<xsl:sort select="FIN_VERKOOPFACTUUR_ID" order="descending"/>
|
|
<xsl:if test="position()=1">
|
|
<xsl:value-of select="FIN_VERKOOPFACTUUR_ID"/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name="filtered">
|
|
<xsl:for-each select="rapport_data/data_row">
|
|
<xsl:if test="PRS_BEDRIJF_KEY=$min_bedrijf and FIN_VERKOOPFACTUUR_ID=$max_factuur">
|
|
<xsl:copy-of select="."/>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:variable>
|
|
|
|
<tr>
|
|
<td colspan="3">
|
|
<b>
|
|
<br/><xsl:value-of select="msxml:node-set($filtered)/data_row/PRS_DEBITEUR_NAAM"/>
|
|
<br/><br/><xsl:value-of select="msxml:node-set($filtered)/data_row/ADRES"/>
|
|
<br/><xsl:value-of select="POSCODE"/><xsl:text> </xsl:text><xsl:value-of select="msxml:node-set($filtered)/data_row/PLAATS"/>
|
|
<br/><xsl:value-of select="msxml:node-set($filtered)/data_row/LAND"/>
|
|
</b>
|
|
</td>
|
|
<td>
|
|
<br/>Invoice number:
|
|
<br/>Date:
|
|
<br/><br/>Customer number:
|
|
<br/>Your VAT number:
|
|
<br/>Your reference:
|
|
<xsl:if test="msxml:node-set($filtered)/data_row/CONTACTPERSOON!=''"><br/>Your contact person:</xsl:if>
|
|
</td>
|
|
<td colspan="2">
|
|
<br/><xsl:value-of select="msxml:node-set($filtered)/data_row/FIN_VERKOOPFACTUUR_ID"/>
|
|
<br/><xsl:value-of select="msxml:node-set($filtered)/data_row/FACTUURDATUM"/>
|
|
<br/><br/><xsl:value-of select="msxml:node-set($filtered)/data_row/PRS_OVEREENKOMST_NR"/>
|
|
<br/><xsl:value-of select="msxml:node-set($filtered)/data_row/BTW_NR"/>
|
|
<br/><xsl:value-of select="substring-before(msxml:node-set($filtered)/data_row/CNT_CONTRACT_NUMMER, '/')"/>
|
|
<xsl:if test="msxml:node-set($filtered)/data_row/CONTACTPERSOON!=''"><br/><xsl:value-of select="msxml:node-set($filtered)/data_row/CONTACTPERSOON"/></xsl:if>
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="6" style="text-align:right"><br/>Page: 1/1</td></tr>
|
|
<tr>
|
|
<td>
|
|
Terms of payment:
|
|
<br/>Payment method:
|
|
<br/>Due date:
|
|
</td>
|
|
<td colspan="5">
|
|
Within 30 days Due net
|
|
<br/>Bank Transfer
|
|
<br/><xsl:value-of select="msxml:node-set($filtered)/data_row/VERVALDATUM"/>
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="6"><br/><b>INVOICE</b></td></tr>
|
|
<tr>
|
|
<td style="text-align:center;vertical-align:middle;border-bottom:1px solid black;background-color:#AAA;"><b>Code</b></td>
|
|
<td colspan="3" style="vertical-align:middle;border-bottom:1px solid black;background-color:#AAA;"><b>Description</b></td>
|
|
<td style="vertical-align:middle;border-bottom:1px solid black;background-color:#AAA;"><b>VAT</b></td>
|
|
<td style="text-align:center;vertical-align:middle;border-bottom:1px solid black;background-color:#AAA;"><b>Amount excl.<br/>VAT</b></td>
|
|
</tr>
|
|
|
|
<xsl:for-each select="msxml:node-set($filtered)/data_row">
|
|
<xsl:sort select="CNT_CONTRACT_NUMMER_INTERN"/>
|
|
<xsl:sort select="CNT_CONTRACT_VERSIE"/>
|
|
<xsl:sort select="ALG_PLAATSAANDUIDING"/>
|
|
<xsl:variable name="prev_cnt">
|
|
<xsl:choose>
|
|
<xsl:when test="position()=1">Quqelequ</xsl:when>
|
|
<xsl:otherwise><xsl:value-of select="preceding-sibling::data_row[1]/CNT_CONTRACT_KEY"/></xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
<xsl:variable name="this_cnt">
|
|
<xsl:value-of select="CNT_CONTRACT_KEY"/>
|
|
</xsl:variable>
|
|
|
|
<!-- Als 'this' != 'prev', dan nieuwe factuurregel! -->
|
|
<xsl:if test="$this_cnt!=$prev_cnt">
|
|
<tr>
|
|
<td style="border-bottom:1px solid black;"><xsl:value-of select="CNT_CONTRACT_NUMMER"/></td>
|
|
<td colspan="3" style="border-bottom:1px solid black;">Campus Rent <xsl:value-of select="CNT_CONTRACT_NUMMER_INTERN"/><xsl:if test="CNT_CONTRACT_VERSIE!=''">.<xsl:value-of select="CNT_CONTRACT_VERSIE"/></xsl:if> / <xsl:value-of select="msxml:node-set($filtered)/data_row/DAGBEGIN"/> - <xsl:value-of select="msxml:node-set($filtered)/data_row/DAGEINDE"/></td>
|
|
<td style="border-bottom:1px solid black;"><xsl:value-of select="FIN_BTWTABELWAARDE_PERC"/> %</td>
|
|
<td style="text-align:right;border-bottom:1px solid black;"><xsl:value-of select="format-number(sum(msxml:node-set($filtered)/data_row[CNT_CONTRACT_KEY=$this_cnt]/MNDNET), '###.###.##0,00', 'european')"/></td>
|
|
</tr>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
|
|
<xsl:variable name="mndnet">
|
|
<xsl:value-of select="sum(msxml:node-set($filtered)/data_row/MNDNET)"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="mndbtw">
|
|
<xsl:value-of select="sum(msxml:node-set($filtered)/data_row/MNDBTW)"/>
|
|
</xsl:variable>
|
|
<tr><td colspan="6">Period from - to: <xsl:value-of select="msxml:node-set($filtered)/data_row/MNDBEGIN"/> - <xsl:value-of select="msxml:node-set($filtered)/data_row/MNDEINDE"/></td></tr>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td colspan="2"><b>Subtotal</b></td>
|
|
<td style="text-align:right;"><xsl:value-of select="format-number($mndnet, '###.###.##0,00', 'european')"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td colspan="2">BTW 21%</td>
|
|
<td style="text-align:right;"><xsl:value-of select="format-number($mndbtw, '###.###.##0,00', 'european')"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"/>
|
|
<td colspan="2">BTW 0%</td>
|
|
<td style="text-align:right;"><xsl:value-of select="format-number(0, '###.###.##0,00', 'european')"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3" style="background-color:#AAA;"/>
|
|
<td colspan="2" style="vertical-align:middle;background-color:#AAA;"><b>Total</b></td>
|
|
<td style="text-align:right;vertical-align:middle;background-color:#AAA;">Euro <xsl:value-of select="format-number($mndnet + $mndbtw, '###.###.##0,00', 'european')"/></td>
|
|
</tr>
|
|
<tr><td colspan="6"><br/>This is the invoice for rent at Chemelot Campus.</td></tr>
|
|
<!--/table>
|
|
<table border="0" style="width:100%;border-collapse:collapse;" cellpadding="0" cellspacing="0"-->
|
|
<tr>
|
|
<td colspan="6" style="font-size:6pt;">
|
|
<br/><b>Please mention invoice number <xsl:value-of select="msxml:node-set($filtered)/data_row/FIN_VERKOOPFACTUUR_ID"/> and customer number <xsl:value-of select="msxml:node-set($filtered)/data_row/PRS_OVEREENKOMST_NR"/> with your payment.</b>
|
|
<br/>Rabobank (EUR) Geleen Netherlands
|
|
<br/>Bank account 1716.02.161, Bank key RABONL2U
|
|
<br/>IBAN   NL 33 RABO 01716 02 161
|
|
<br/>BIC     RABONL2U
|
|
<br/><b>Our VAT number: NL852049511B01</b>
|
|
</td>
|
|
</tr>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|