FSN#39055 savepoint
svn path=/Website/branches/v2017.1/; revision=34957
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
<xsl:key name="GROUPBY_PRS_LEVERANCIER_NR" match="//data_row" use="PRS_LEVERANCIER_NR"/>
|
||||
<xsl:key name="GROUPBY_ONDERDEELCODE" match="//data_row" use="ONDERDEELCODE"/>
|
||||
<xsl:key name="GROUPBY_CONTRACT" match="//data_row" use="MLD_OPDR_ORDERNR"/>
|
||||
<xsl:key name="GROUPBY_ACCOUNTCODE" match="//data_row" use="ACCOUNTCODE"/>
|
||||
|
||||
<xsl:template name="stylesheet">
|
||||
<style>
|
||||
@@ -22,7 +23,7 @@
|
||||
line-height: 1.8em;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
padding:0;
|
||||
padding: 0;
|
||||
}
|
||||
table { /* om border om lege cellen te houden */
|
||||
border-collapse: collapse;
|
||||
@@ -36,7 +37,7 @@
|
||||
padding: 40px 0 40px 0;
|
||||
}
|
||||
.th3 {
|
||||
padding: 12px;
|
||||
padding: 12px 12px 12px 2px;
|
||||
border-top: 1px solid #333;
|
||||
border-bottom: 1px solid #333;
|
||||
}
|
||||
@@ -48,10 +49,15 @@
|
||||
h3 {font-size: 12px;
|
||||
color: #500;
|
||||
}
|
||||
h4 {font-size: 12px;
|
||||
h4, p {
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
color: #500;
|
||||
}
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
td {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
@@ -101,8 +107,8 @@
|
||||
padding-top: 0;
|
||||
line-height: 8px;
|
||||
}
|
||||
.subtoth {
|
||||
border-top: 1px solid #ddd;
|
||||
.subtotblk {
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
.subtotf {
|
||||
}
|
||||
@@ -130,9 +136,7 @@
|
||||
<xsl:attribute name="colspan"><xsl:value-of select="$aantal_kolommen"/></xsl:attribute>
|
||||
<table class="tbhs" width="100%" cellspacing="0" cellpadding="0">
|
||||
<xsl:variable name="opdrachtgever">
|
||||
<xsl:if test="substring-after(//rapport/where, 'bgt_disc_params_opdrachtgever') != ''">
|
||||
<xsl:value-of select="rapport_data/data_row//BGT_DISC_PARAMS_OPDRACHTGEVER"/>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="rapport_data/data_row//OPDRACHTGEVER"/>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="projectcode">
|
||||
<xsl:if test="substring-after(//rapport/where, 'bgt_disc_params_opdrachtgever') != ''">
|
||||
@@ -140,33 +144,33 @@
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="projectnaam">
|
||||
<xsl:if test="substring-after(//rapport/where, 'ins_discipline_omschrijving') != ''">
|
||||
<xsl:value-of select="rapport_data/data_row//INS_DISCIPLINE_OMSCHRIJVING"/>
|
||||
<xsl:if test="substring-after(//rapport/where, 'project') != ''">
|
||||
<xsl:value-of select="rapport_data/data_row//PROJECT"/>
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="deelproject">
|
||||
<xsl:if test="substring-after(//rapport/where, 'bgt_project_omschrijving') != ''">
|
||||
<xsl:value-of select="rapport_data/data_row//BGT_PROJECT_OMSCHRIJVING"/>
|
||||
<xsl:if test="substring-after(//rapport/where, 'subproject') != ''">
|
||||
<xsl:value-of select="rapport_data/data_row//SUBPROJECT"/>
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
|
||||
<tr>
|
||||
<td class="tdhs" style="width:15%;"><div class="alignleft">Opdrachtgever</div><div class="alignright">:</div></td>
|
||||
<td class="tdhs" style="width:55%;"><xsl:value-of select="$opdrachtgever"/></td>
|
||||
<td class="tdhs" style="width:15%;"><div class="alignleft">Projectcode</div><div class="alignright">:</div></td>
|
||||
<td class="tdhs" style="width:15%;"><xsl:value-of select="$projectcode"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdhs" style="width:15%;"><div class="alignleft">Project</div><div class="alignright">:</div></td>
|
||||
<td class="tdhs" style="width:55%;"><xsl:value-of select="$projectnaam"/></td>
|
||||
<td class="tdhs" style="width:15%;"><div class="alignleft">Afdrukdatum</div><div class="alignright">:</div></td>
|
||||
<td class="tdhs" style="width:15%;"><xsl:value-of select="$afdrukdatum"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdhs" style="width:15%;"><div class="alignleft">Deelproject</div><div class="alignright">:</div></td>
|
||||
<td class="tdhs" style="width:55%;"><xsl:value-of select="$deelproject"/></td>
|
||||
<td class="tdhs" style="width:15%;"> </td>
|
||||
<td class="tdhs" style="width:15%;"> </td>
|
||||
<td class="tdhs"><div class="alignleft">Project</div><div class="alignright">:</div></td>
|
||||
<td class="tdhs"><xsl:value-of select="$projectnaam"/></td>
|
||||
<td class="tdhs"> </td>
|
||||
<td class="tdhs"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdhs"><div class="alignleft">Deelproject</div><div class="alignright">:</div></td>
|
||||
<td class="tdhs"><xsl:value-of select="$deelproject"/></td>
|
||||
<td class="tdhs"> </td>
|
||||
<td class="tdhs"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</th>
|
||||
@@ -194,6 +198,13 @@
|
||||
<xsl:when test="@title = 'CON_FACT'">
|
||||
<xsl:call-template name="contracten_en_facturen_per_contractant"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'CON_ACC1'">
|
||||
<xsl:call-template name="contracten_per_account"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BMUT_NUM'">
|
||||
<xsl:call-template name="budgetmutaties_op_nummer"/>
|
||||
</xsl:when>
|
||||
<!-- hier verder uit te breiden -->
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
@@ -234,27 +245,27 @@
|
||||
<td style="background-color: #ffffff" height="10"></td>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="rapport_data/data_row/PRS_LEVERANCIER_NR[not(.=preceding::*)]">
|
||||
<xsl:sort select="../PRS_LEVERANCIER_NR"/>
|
||||
<xsl:for-each select="rapport_data/data_row/LEVERANCIERCODE[not(.=preceding::*)]">
|
||||
<xsl:sort select="../LEVERANCIERCODE"/>
|
||||
|
||||
<xsl:variable name="bedr_code">
|
||||
<xsl:value-of select="../PRS_LEVERANCIER_NR"/>
|
||||
<xsl:value-of select="../LEVERANCIERCODE"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="bedr_naam">
|
||||
<xsl:value-of select="../PRS_BEDRIJF_NAAM"/>
|
||||
<xsl:value-of select="../NAAM"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="bedr_adrs">
|
||||
<xsl:value-of select="../PRS_BEDRIJF_POST_ADRES"/>
|
||||
<xsl:value-of select="../ADRES"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="bedr_post">
|
||||
<xsl:value-of select="../PRS_BEDRIJF_POST_POSTCODE"/>
|
||||
<xsl:value-of select="../POSTCODE"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="bedr_plts">
|
||||
<xsl:value-of select="../PRS_BEDRIJF_POST_PLAATS"/>
|
||||
<xsl:value-of select="../PLAATS"/>
|
||||
</xsl:variable>
|
||||
|
||||
<tr>
|
||||
@@ -335,46 +346,6 @@
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="DISPLAY_KOSTENSOORTGROEP">
|
||||
<xsl:param name="p_bgt_kostenrubriek_code"/>
|
||||
<xsl:for-each select="//data_row[generate-id(.)=generate-id(key('GROUPBY_PRS_KOSTENSOORTGRP_ALTCODE',PRS_KOSTENSOORTGRP_ALTCODE)[1]) and BGT_KOSTENRUBRIEK_CODE = $p_bgt_kostenrubriek_code]">
|
||||
<xsl:sort select="PRS_KOSTENSOORTGRP_ALTCODE"/>
|
||||
<tr class="header">
|
||||
<td class="tdt" colspan='9'><h3><xsl:value-of select="PRS_KOSTENSOORTGRP_OMS"/></h3></td>
|
||||
</tr>
|
||||
<xsl:call-template name="DISPLAY_KOSTENSOORT">
|
||||
<xsl:with-param name="p_bgt_kostenrubriek_code" select="$p_bgt_kostenrubriek_code"/>
|
||||
<xsl:with-param name="p_prs_kostensoortgrp_altcode" select="PRS_KOSTENSOORTGRP_ALTCODE"/>
|
||||
</xsl:call-template>
|
||||
<xsl:variable name="v_prs_kostensoortgrp_altcode" select="PRS_KOSTENSOORTGRP_ALTCODE"/>
|
||||
<tr class="footer">
|
||||
<td class="tdt" colspan='3'><h3><xsl:value-of select="PRS_KOSTENSOORTGRP_ALTCODE"/></h3></td>
|
||||
<td class="tdt" colspan='3'><h3>Subtotaal</h3></td>
|
||||
<td class="tdtr"><h3> <xsl:value-of select="format-number(sum(//data_row[PRS_KOSTENSOORTGRP_ALTCODE = $v_prs_kostensoortgrp_altcode]/KOSTEN), '#.##0,00', 'euro')"/></h3></td>
|
||||
<td class="tdtr"><h3> <xsl:value-of select="format-number(sum(//data_row[PRS_KOSTENSOORTGRP_ALTCODE = $v_prs_kostensoortgrp_altcode]/BTW), '#.##0,00', 'euro')"/></h3></td>
|
||||
<td class="tdtr"><h3> <xsl:value-of select="format-number(sum(//data_row[PRS_KOSTENSOORTGRP_ALTCODE = $v_prs_kostensoortgrp_altcode]/FACTUREN), '#.##0,00', 'euro')"/></h3></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="DISPLAY_KOSTENSOORT">
|
||||
<xsl:param name="p_bgt_kostenrubriek_code"/>
|
||||
<xsl:param name="p_prs_kostensoortgrp_altcode"/>
|
||||
<xsl:for-each select="//data_row[BGT_KOSTENRUBRIEK_CODE = $p_bgt_kostenrubriek_code and PRS_KOSTENSOORTGRP_ALTCODE = $p_prs_kostensoortgrp_altcode]">
|
||||
<xsl:sort select="PRS_KOSTENSOORT_ALTCODE"/>
|
||||
<tr>
|
||||
<td class="tdt1"><xsl:value-of select="PRS_KOSTENSOORT_ALTCODE"/></td>
|
||||
<td class="tdt"><xsl:value-of select="PRS_LEVERANCIER_NR"/></td>
|
||||
<td class="tdt"><xsl:value-of select="MLD_OPDR_ORDERNR"/></td>
|
||||
<td class="tdt tdte"><xsl:value-of select="PRS_KOSTENSOORT_OMS"/></td>
|
||||
<td class="tdt"><xsl:value-of select="KENMERK"/></td>
|
||||
<td class="tdtd"><xsl:value-of select="PRINTDATUM"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(KOSTEN, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(BTW, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(FACTUREN, '#.##0,00', 'euro')"/></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<!-- =======================================================
|
||||
contracten en facturen per contractant
|
||||
@@ -417,14 +388,14 @@
|
||||
<xsl:for-each select="//data_row[generate-id(.)=generate-id(key('GROUPBY_PRS_LEVERANCIER_NR',PRS_LEVERANCIER_NR)[1])]">
|
||||
<xsl:sort select="PRS_LEVERANCIER_NR"/>
|
||||
<tr>
|
||||
<td class="tdt" colspan='3'><h3><xsl:value-of select="PRS_LEVERANCIER_NR"/></h3></td>
|
||||
<td class="tdt" colspan='6'><h3><xsl:value-of select="PRS_BEDRIJF_NAAM"/></h3></td>
|
||||
<td class="tdt" colspan='3'><h2><xsl:value-of select="PRS_LEVERANCIER_NR"/></h2></td>
|
||||
<td class="tdt" colspan='6'><h2><xsl:value-of select="PRS_BEDRIJF_NAAM"/></h2></td>
|
||||
</tr>
|
||||
<xsl:call-template name="DISPLAY_ONDERDELEN">
|
||||
<xsl:call-template name="DISPLAY_ONDERDELEN_LEV">
|
||||
<xsl:with-param name="p_prs_leverancier_nr" select="PRS_LEVERANCIER_NR"/>
|
||||
</xsl:call-template>
|
||||
<xsl:variable name="v_prs_leverancier_nr" select="PRS_LEVERANCIER_NR"/>
|
||||
<tr class="subt subtoth">
|
||||
<tr class="subt subtotblk">
|
||||
<td class="tdt" colspan='3'><h3><xsl:value-of select="PRS_LEVERANCIER_NR"/></h3></td>
|
||||
<td class="tdt" colspan='2'><h3>gecontracteerd<br/>gefactureerd<br/>nog te factureren</h3></td>
|
||||
<td class="tdtr"><h3>
|
||||
@@ -457,9 +428,134 @@
|
||||
</table>
|
||||
|
||||
</xsl:template>
|
||||
<!-- =======================================================
|
||||
(contracten en) facturen per account
|
||||
=======================================================
|
||||
Kent 2 afggregatie niveaus (subtotalen)
|
||||
1. alle accounts
|
||||
2. alle facturen (van een account)
|
||||
|
||||
-->
|
||||
<xsl:template name="contracten_per_account">
|
||||
<table width="100%" cellspacing="0" cellpadding="5" class="tab_cat_sched nofloat">
|
||||
<thead>
|
||||
<xsl:call-template name="page_select_header">
|
||||
<xsl:with-param name="titel">Overzicht contracten per account</xsl:with-param>
|
||||
<xsl:with-param name="aantal_kolommen">9</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:template name="DISPLAY_ONDERDELEN">
|
||||
<tr><td class="subt" colspan="9">(alle bedragen zijn in Euro)</td></tr>
|
||||
<tr>
|
||||
<th class="th3">Account/<br/>
|
||||
Contractant</th>
|
||||
<th class="th3">Onderdeel</th>
|
||||
<th class="th3">Nr</th>
|
||||
<th class="th3">Omschrijving</th>
|
||||
<th class="th3">Kenmerk</th>
|
||||
<th class="th3">Datum</th>
|
||||
<th class="th3 tdtr">Bedrag excl. BTW</th>
|
||||
<th class="th3 tdtr">BTW</th>
|
||||
<th class="th3 tdtr">Gefactureerd</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- TBODY start -->
|
||||
<xsl:text disable-output-escaping="yes"><tbody></xsl:text>
|
||||
<xsl:for-each select="//data_row[generate-id(.)=generate-id(key('GROUPBY_ACCOUNTCODE',ACCOUNTCODE)[1])]">
|
||||
<xsl:sort select="ACCOUNTCODE"/>
|
||||
<tr>
|
||||
<td class="tdt" colspan='3'><h2><xsl:value-of select="ACCOUNTCODE"/></h2></td>
|
||||
<td class="tdt" colspan='6'><h2><xsl:value-of select="ACCOUNT"/></h2></td>
|
||||
</tr>
|
||||
<xsl:call-template name="DISPLAY_CONTRACTEN_ACC">
|
||||
<xsl:with-param name="p_accountcode" select="ACCOUNTCODE"/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
<tr class="subt">
|
||||
<td class="th3" colspan='3'></td>
|
||||
<td class="th3" colspan='3'><h3>TOTAAL</h3></td>
|
||||
<td class="th3 tdtr"><h3><xsl:value-of select="format-number(sum(//data_row/MLD_OPDR_KOSTEN), '#.##0,00', 'euro')"/></h3></td>
|
||||
<td class="th3 tdtr"><h3><xsl:value-of select="format-number(sum(//data_row/MLD_OPDR_KOSTEN_BTW), '#.##0,00', 'euro')"/></h3></td>
|
||||
<td class="th3 tdtr"><h3><xsl:value-of select="format-number(sum(//data_row/FIN_FACTUUR_TOTAAL), '#.##0,00', 'euro')"/></h3></td>
|
||||
<td class="th3"></td>
|
||||
</tr>
|
||||
<xsl:text disable-output-escaping="yes"></tbody></xsl:text>
|
||||
<!-- TBODY einde -->
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<!-- =======================================================
|
||||
budgetmutaties
|
||||
=======================================================
|
||||
-->
|
||||
<xsl:template name="budgetmutaties_op_nummer">
|
||||
<table width="100%" cellspacing="0" cellpadding="5" class="tab_cat_sched nofloat">
|
||||
<thead>
|
||||
<xsl:call-template name="page_select_header">
|
||||
<xsl:with-param name="titel">budgetmutaties_op_nummer@ tbd</xsl:with-param>
|
||||
<xsl:with-param name="aantal_kolommen">9</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<tr><td class="subt" colspan="9">(alle bedragen zijn in Euro)</td></tr>
|
||||
<tr>
|
||||
<th class="th3">Code</th>
|
||||
<th class="th3">Datum</th>
|
||||
<th class="th3">Nr</th>
|
||||
<th class="th3">Omschrijving</th>
|
||||
<th class="th3">Kenmerk</th>
|
||||
<th class="th3 tdtr">Bedrag excl. BTW</th>
|
||||
<th class="th3 tdtr">BTW</th>
|
||||
<th class="th3 tdtr">Bedrag incl. BTW</th>
|
||||
<th class="th3 tdtr">Adviesdatum</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<!--
|
||||
HIERONDER LOUTER HULP-TEMPLATES VOOR DE SUBBLOKKEN VAN AL DE BOVENSTAANDE RAPPORTAGES
|
||||
-->
|
||||
<xsl:template name="DISPLAY_KOSTENSOORTGROEP">
|
||||
<xsl:param name="p_bgt_kostenrubriek_code"/>
|
||||
<xsl:for-each select="//data_row[generate-id(.)=generate-id(key('GROUPBY_PRS_KOSTENSOORTGRP_ALTCODE',PRS_KOSTENSOORTGRP_ALTCODE)[1]) and BGT_KOSTENRUBRIEK_CODE = $p_bgt_kostenrubriek_code]">
|
||||
<xsl:sort select="PRS_KOSTENSOORTGRP_ALTCODE"/>
|
||||
<tr class="header">
|
||||
<td class="tdt" colspan='9'><h3><xsl:value-of select="PRS_KOSTENSOORTGRP_OMS"/></h3></td>
|
||||
</tr>
|
||||
<xsl:call-template name="DISPLAY_KOSTENSOORT">
|
||||
<xsl:with-param name="p_bgt_kostenrubriek_code" select="$p_bgt_kostenrubriek_code"/>
|
||||
<xsl:with-param name="p_prs_kostensoortgrp_altcode" select="PRS_KOSTENSOORTGRP_ALTCODE"/>
|
||||
</xsl:call-template>
|
||||
<xsl:variable name="v_prs_kostensoortgrp_altcode" select="PRS_KOSTENSOORTGRP_ALTCODE"/>
|
||||
<tr class="footer">
|
||||
<td class="tdt" colspan='3'><h3><xsl:value-of select="PRS_KOSTENSOORTGRP_ALTCODE"/></h3></td>
|
||||
<td class="tdt" colspan='3'><h3>Subtotaal</h3></td>
|
||||
<td class="tdtr"><h3> <xsl:value-of select="format-number(sum(//data_row[PRS_KOSTENSOORTGRP_ALTCODE = $v_prs_kostensoortgrp_altcode]/KOSTEN), '#.##0,00', 'euro')"/></h3></td>
|
||||
<td class="tdtr"><h3> <xsl:value-of select="format-number(sum(//data_row[PRS_KOSTENSOORTGRP_ALTCODE = $v_prs_kostensoortgrp_altcode]/BTW), '#.##0,00', 'euro')"/></h3></td>
|
||||
<td class="tdtr"><h3> <xsl:value-of select="format-number(sum(//data_row[PRS_KOSTENSOORTGRP_ALTCODE = $v_prs_kostensoortgrp_altcode]/FACTUREN), '#.##0,00', 'euro')"/></h3></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="DISPLAY_KOSTENSOORT">
|
||||
<xsl:param name="p_bgt_kostenrubriek_code"/>
|
||||
<xsl:param name="p_prs_kostensoortgrp_altcode"/>
|
||||
<xsl:for-each select="//data_row[BGT_KOSTENRUBRIEK_CODE = $p_bgt_kostenrubriek_code and PRS_KOSTENSOORTGRP_ALTCODE = $p_prs_kostensoortgrp_altcode]">
|
||||
<xsl:sort select="PRS_KOSTENSOORT_ALTCODE"/>
|
||||
<tr>
|
||||
<td class="tdt1"><xsl:value-of select="PRS_KOSTENSOORT_ALTCODE"/></td>
|
||||
<td class="tdt"><xsl:value-of select="PRS_LEVERANCIER_NR"/></td>
|
||||
<td class="tdt"><xsl:value-of select="MLD_OPDR_ORDERNR"/></td>
|
||||
<td class="tdt tdte"><xsl:value-of select="PRS_KOSTENSOORT_OMS"/></td>
|
||||
<td class="tdt"><xsl:value-of select="KENMERK"/></td>
|
||||
<td class="tdtd"><xsl:value-of select="PRINTDATUM"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(KOSTEN, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(BTW, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(FACTUREN, '#.##0,00', 'euro')"/></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="DISPLAY_ONDERDELEN_LEV">
|
||||
<xsl:param name="p_prs_leverancier_nr"/>
|
||||
<xsl:for-each select="//data_row[generate-id(.)=generate-id(key('GROUPBY_ONDERDEELCODE',ONDERDEELCODE)[1]) and PRS_LEVERANCIER_NR = $p_prs_leverancier_nr]">
|
||||
<xsl:sort select="ONDERDEELCODE"/>
|
||||
@@ -496,7 +592,6 @@
|
||||
<xsl:template name="DISPLAY_CONTRACTEN">
|
||||
<xsl:param name="p_prs_leverancier_nr"/>
|
||||
<xsl:param name="p_onderdeelcode"/>
|
||||
|
||||
<xsl:for-each select="//data_row[generate-id(.)=generate-id(key('GROUPBY_CONTRACT',MLD_OPDR_ORDERNR)[1]) and PRS_LEVERANCIER_NR = $p_prs_leverancier_nr and ONDERDEELCODE = $p_onderdeelcode]">
|
||||
<xsl:sort select="MLD_OPDR_DATUMBEGIN"/>
|
||||
<xsl:variable name="v_mld_ordernr" select="MLD_OPDR_ORDERNR"/>
|
||||
@@ -505,7 +600,7 @@
|
||||
<td class="tdt"><h3><xsl:value-of select="MLD_OPDR_DATUMBEGIN_P"/></h3></td>
|
||||
<td class="tdt"><h3><xsl:value-of select="MLD_OPDR_ORDERNR"/></h3></td>
|
||||
<td class="tdt tdte"><h3><xsl:if test="MLD_OPDR_MEERWERK=1">* </xsl:if><xsl:value-of select="MLD_OPDR_OMSCHRIJVING"/></h3></td>
|
||||
<td class="tdt"><h3><xsl:value-of select="CONTRACTNR"/></h3></td>
|
||||
<td class="tdt"><h3><xsl:value-of select="KENMERK"/></h3></td>
|
||||
<td class="tdtr"><h3><xsl:value-of select="format-number(MLD_OPDR_KOSTEN, '#.##0,00', 'euro')"/></h3></td>
|
||||
<td class="tdtr"><h3><xsl:value-of select="format-number(MLD_OPDR_KOSTEN_BTW, '#.##0,00', 'euro')"/></h3></td>
|
||||
<td class="tdtr"><h3><xsl:value-of select="format-number(MLD_OPDR_KOSTEN+MLD_OPDR_KOSTEN_BTW, '#.##0,00', 'euro')"/></h3></td>
|
||||
@@ -516,7 +611,6 @@
|
||||
<xsl:with-param name="p_onderdeelcode" select="$p_onderdeelcode"/>
|
||||
<xsl:with-param name="p_contractnr" select="$v_mld_ordernr"/>
|
||||
</xsl:call-template>
|
||||
|
||||
<tr class="sfooter">
|
||||
<td class="tdt" colspan='2'></td>
|
||||
<td class="tdt"><h3><xsl:value-of select="MLD_OPDR_ORDERNR"/></h3></td>
|
||||
@@ -543,22 +637,54 @@
|
||||
<xsl:param name="p_contractnr"/>
|
||||
<xsl:for-each select="//data_row[PRS_LEVERANCIER_NR = $p_prs_leverancier_nr and ONDERDEELCODE = $p_onderdeelcode and MLD_OPDR_ORDERNR = $p_contractnr]">
|
||||
<xsl:sort select="FIN_FACTUUR_DATUM"/>
|
||||
<xsl:if test="FIN_FACTUUR_DATUM!=''">
|
||||
<tr>
|
||||
<td class="tdt1"></td>
|
||||
<td class="tdt"><xsl:value-of select="FIN_FACTUUR_DATUM_P"/></td>
|
||||
<td class="tdt"><xsl:value-of select="FIN_FACTUUR_NR"/></td>
|
||||
<td class="tdt tdte"><xsl:value-of select="FIN_FACTUUR_OPMERKING"/></td>
|
||||
<td class="tdt"><p><xsl:value-of select="FIN_FACTUUR_DATUM_P"/></p></td>
|
||||
<td class="tdt"><p><xsl:value-of select="FIN_FACTUUR_NR"/></p></td>
|
||||
<td class="tdt tdte"><p><xsl:value-of select="FIN_FACTUUR_OPMERKING"/></p></td>
|
||||
<td class="tdt"></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(FIN_FACTUUR_TOTAAL, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(FIN_FACTUUR_TOTAAL_BTW, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(FIN_FACTUUR_TOTAAL+FIN_FACTUUR_TOTAAL_BTW, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdt"><xsl:value-of select="FIN_FACTUUR_ADVIES_P"/></td>
|
||||
<td class="tdtr"><p><xsl:value-of select="format-number(FIN_FACTUUR_TOTAAL, '#.##0,00', 'euro')"/></p></td>
|
||||
<td class="tdtr"><p><xsl:value-of select="format-number(FIN_FACTUUR_TOTAAL_BTW, '#.##0,00', 'euro')"/></p></td>
|
||||
<td class="tdtr"><p><xsl:value-of select="format-number(FIN_FACTUUR_TOTAAL+FIN_FACTUUR_TOTAAL_BTW, '#.##0,00', 'euro')"/></p></td>
|
||||
<td class="tdt"><p><xsl:value-of select="FIN_FACTUUR_ADVIES_P"/></p></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="DISPLAY_CONTRACTEN_ACC">
|
||||
<xsl:param name="p_accountcode"/>
|
||||
<xsl:for-each select="//data_row[ACCOUNTCODE = $p_accountcode]">
|
||||
<xsl:sort select="PRS_LEVERANCIER_NR"/>
|
||||
<tr>
|
||||
<td class="tdt"><p><xsl:value-of select="PRS_LEVERANCIER_NR"/></p></td>
|
||||
<td class="tdt"><p><xsl:value-of select="ONDERDEELCODE"/></p></td>
|
||||
<td class="tdt"><p><xsl:value-of select="MLD_OPDR_ORDERNR"/></p></td>
|
||||
<td class="tdt tdte"><p><xsl:if test="MLD_OPDR_MEERWERK=1">* </xsl:if><xsl:value-of select="MLD_OPDR_OMSCHRIJVING"/></p></td>
|
||||
<td class="tdt"><p><xsl:value-of select="KENMERK"/></p></td>
|
||||
<td class="tdt"><p><xsl:value-of select="PRINTDATUM"/></p></td>
|
||||
<td class="tdtr"><p><xsl:value-of select="format-number(MLD_OPDR_KOSTEN, '#.##0,00', 'euro')"/></p></td>
|
||||
<td class="tdtr"><p><xsl:value-of select="format-number(MLD_OPDR_KOSTEN_BTW, '#.##0,00', 'euro')"/></p></td>
|
||||
<td class="tdtr"><p><xsl:value-of select="format-number(FIN_FACTUUR_TOTAAL, '#.##0,00', 'euro')"/></p></td>
|
||||
<td class="tdtr"></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
<tr class="sfooter">
|
||||
<td class="tdt"><h3><xsl:value-of select="ACCOUNTCODE"/></h3></td>
|
||||
<td class="tdt" colspan='2'></td>
|
||||
<td class="tdt" colspan='3'><h3>Subtotaal</h3></td>
|
||||
<td class="tdtr"><h3>
|
||||
<xsl:value-of select="format-number(sum(//data_row[ACCOUNTCODE = $p_accountcode]/MLD_OPDR_KOSTEN), '#.##0,00', 'euro')"/>
|
||||
</h3></td>
|
||||
<td class="tdtr"><h3>
|
||||
<xsl:value-of select="format-number(sum(//data_row[ACCOUNTCODE = $p_accountcode]/MLD_OPDR_KOSTEN_BTW), '#.##0,00', 'euro')"/>
|
||||
</h3></td>
|
||||
<td class="tdtr"><h3>
|
||||
<xsl:value-of select="format-number(sum(//data_row[ACCOUNTCODE = $p_accountcode]/FIN_FACTUUR_TOTAAL), '#.##0,00', 'euro')"/></h3></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
<!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. All rights reserved.
|
||||
|
||||
Reference in New Issue
Block a user