Totaaloverzicht en Overzicht rubrieken deelproject 3 Stadhuis
svn path=/Website/trunk/; revision=39017
This commit is contained in:
@@ -532,6 +532,9 @@
|
||||
<xsl:when test="@title = 'BREG_TOT'">
|
||||
<xsl:call-template name="overzicht_budgetrapportage"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'JGL'">
|
||||
<xsl:call-template name="overzicht_budgetrapportage_1"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BREG_BTW'">
|
||||
<xsl:call-template name="overzicht_btw"/>
|
||||
</xsl:when>
|
||||
@@ -1499,6 +1502,184 @@
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<!-- =======================================================
|
||||
JGL
|
||||
budgetrapportage: totaaloverzicht_1
|
||||
=======================================================
|
||||
-->
|
||||
<xsl:template name="overzicht_budgetrapportage_1">
|
||||
<table width="100%" cellspacing="0" cellpadding="5" class="tab_cat_sched nofloat">
|
||||
<xsl:variable name="v_periode">
|
||||
<xsl:call-template name="GET_PERIODE">
|
||||
<xsl:with-param name="p_periode_veld">bgt_datum</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<thead>
|
||||
<xsl:call-template name="page_select_header">
|
||||
<xsl:with-param name="titel">Totaaloverzicht budgetrapportage</xsl:with-param>
|
||||
<xsl:with-param name="aantal_kolommen">8</xsl:with-param>
|
||||
<xsl:with-param name="periode"><xsl:value-of select="$v_periode"/></xsl:with-param>
|
||||
<xsl:with-param name="versie">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<tr><td class="subt" colspan="8">(alle bedragen zijn in Euro en excl. BTW)</td></tr>
|
||||
<tr class="thr">
|
||||
<th class="th3">Omschrijving</th>
|
||||
<th class="th3 tdtr">Budget<br/>origineel</th>
|
||||
<th class="th3 tdtr">Budget<br/>mutatie</th>
|
||||
<th class="th3 tdtr">van/naar<br/>reserve</th>
|
||||
<th class="th3 tdtr">Budget<br/>huidig</th>
|
||||
<th class="th3 tdtr">Contracten</th>
|
||||
<th class="th3 tdtr" style="">Nog te<br/>contracteren</th>
|
||||
<th class="th3 tdtr">Facturen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- TBODY start -->
|
||||
<xsl:text disable-output-escaping="yes"><tbody></xsl:text>
|
||||
|
||||
<xsl:for-each select="//data_row[RCODE != 'R'][generate-id(.)=generate-id(key('GROUPBY_RUBRIEKCODE',RCODE)[1])]">
|
||||
<xsl:sort select="RCODE"/>
|
||||
<xsl:variable name="v_rubriekcode" select="RCODE"/>
|
||||
|
||||
<xsl:variable name="v_bgt_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_res_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_cnt_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_fin_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_new_bedrag" select="$v_bgt_bedrag"/>
|
||||
<xsl:variable name="v_old_bedrag" select="$v_new_bedrag - $v_mut_bedrag - $v_res_bedrag"/>
|
||||
<xsl:variable name="v_tct_bedrag" select="$v_new_bedrag - $v_cnt_bedrag"/>
|
||||
<tr><td class="tdtl" colspan="8"> </td></tr>
|
||||
<tr>
|
||||
<td class="tdtd"><xsl:value-of select="KOSTENRUBRIEK"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_old_bedrag, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mut_bedrag, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_res_bedrag, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_new_bedrag, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_cnt_bedrag, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_tct_bedrag, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_fin_bedrag, '#.##0', 'euro')"/></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
<tr><td class="tdtl" colspan="8"> </td></tr>
|
||||
|
||||
<!-- subtotaal rubrieken -->
|
||||
<xsl:variable name="v_bgt_bedrag_rub" select="sum(//data_row[RCODE != 'R']/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag_rub" select="sum(//data_row[RCODE != 'R']/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_res_bedrag_rub" select="sum(//data_row[RCODE != 'R']/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_cnt_bedrag_rub" select="sum(//data_row[RCODE != 'R']/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_fin_bedrag_rub" select="sum(//data_row[RCODE != 'R']/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_new_bedrag_rub" select="$v_bgt_bedrag_rub"/>
|
||||
<xsl:variable name="v_old_bedrag_rub" select="$v_new_bedrag_rub - $v_mut_bedrag_rub - $v_res_bedrag_rub"/>
|
||||
<xsl:variable name="v_tct_bedrag_rub" select="$v_new_bedrag_rub - $v_cnt_bedrag_rub"/>
|
||||
|
||||
<tr class="subt2 trblk">
|
||||
<td class="tdtd tdbi">Subtotaal</td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_old_bedrag_rub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_mut_bedrag_rub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_res_bedrag_rub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_new_bedrag_rub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_cnt_bedrag_rub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_tct_bedrag_rub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_fin_bedrag_rub, '#.##0', 'euro')"/></td>
|
||||
</tr>
|
||||
|
||||
<!-- rubriek reserve -->
|
||||
<xsl:for-each select="//data_row [RCODE = 'R'][generate-id(.)=generate-id(key('GROUPBY_RUBRIEKCODE',RCODE)[1])]">
|
||||
<xsl:sort select="RCODE"/>
|
||||
<xsl:variable name="v_rubriekcode" select="RCODE"/>
|
||||
|
||||
<xsl:variable name="v_bgt_bedrag_res" select="sum(//data_row[RCODE = $v_rubriekcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag_res" select="sum(//data_row[RCODE = $v_rubriekcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_res_bedrag_res" select="sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_new_bedrag_res" select="$v_bgt_bedrag_res"/>
|
||||
<xsl:variable name="v_old_bedrag_res" select="$v_new_bedrag_res - $v_mut_bedrag_res - $v_res_bedrag_res"/>
|
||||
<xsl:variable name="v_cnt_bedrag_res" select="0"/>
|
||||
<xsl:variable name="v_tct_bedrag_res" select="$v_new_bedrag_res - $v_cnt_bedrag_res"/>
|
||||
<tr class="subt2">
|
||||
<td class="tdtd"><xsl:value-of select="KOSTENRUBRIEK"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_old_bedrag_res, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mut_bedrag_res, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_res_bedrag_res, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_new_bedrag_res, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_tct_bedrag_res, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- subtotaal rubrieken en reserve -->
|
||||
<xsl:variable name="v_bgt_bedrag_sub" select="sum(//data_row/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag_sub" select="sum(//data_row/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_res_bedrag_sub" select="sum(//data_row/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_cnt_bedrag_sub" select="sum(//data_row/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_fin_bedrag_sub" select="sum(//data_row/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_new_bedrag_sub" select="$v_bgt_bedrag_sub"/>
|
||||
<xsl:variable name="v_old_bedrag_sub" select="$v_new_bedrag_sub - $v_mut_bedrag_sub - $v_res_bedrag_sub"/>
|
||||
<xsl:variable name="v_tct_bedrag_sub" select="$v_new_bedrag_sub - $v_cnt_bedrag_sub"/>
|
||||
|
||||
<tr class="subt2 trblk">
|
||||
<td class="tdtd tdbi">Totaal excl. BTW</td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_old_bedrag_sub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_mut_bedrag_sub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_res_bedrag_sub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_new_bedrag_sub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_cnt_bedrag_sub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_tct_bedrag_sub, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_fin_bedrag_sub, '#.##0', 'euro')"/></td>
|
||||
</tr>
|
||||
|
||||
<!-- BTW alle rubrieken, incl reserve -->
|
||||
<xsl:variable name="v_bgt_bedrag_btw" select="sum(//data_row/BGT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_mut_bedrag_btw" select="sum(//data_row/MUT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_res_bedrag_btw" select="sum(//data_row/RES_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_cnt_bedrag_btw" select="sum(//data_row/CNT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_fin_bedrag_btw" select="sum(//data_row/FIN_BEDRAG_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_new_bedrag_btw" select="$v_bgt_bedrag_btw"/>
|
||||
<xsl:variable name="v_old_bedrag_btw" select="$v_new_bedrag_btw - $v_mut_bedrag_btw - $v_res_bedrag_btw"/>
|
||||
<xsl:variable name="v_tct_bedrag_btw" select="$v_new_bedrag_btw - $v_cnt_bedrag_btw"/>
|
||||
|
||||
<tr class="subt2">
|
||||
<td class="tdt">BTW</td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_old_bedrag_btw, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mut_bedrag_btw, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_res_bedrag_btw, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_new_bedrag_btw, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_cnt_bedrag_btw, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_tct_bedrag_btw, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_fin_bedrag_btw, '#.##0', 'euro')"/></td>
|
||||
</tr>
|
||||
|
||||
<!-- Totaal alle rubrieken inclusief btw -->
|
||||
<xsl:variable name="v_old_bedrag_tot" select="$v_old_bedrag_sub + $v_old_bedrag_btw"/>
|
||||
<xsl:variable name="v_new_bedrag_tot" select="$v_new_bedrag_sub + $v_new_bedrag_btw"/>
|
||||
<xsl:variable name="v_mut_bedrag_tot" select="$v_mut_bedrag_sub + $v_mut_bedrag_btw"/>
|
||||
<xsl:variable name="v_res_bedrag_tot" select="$v_res_bedrag_sub + $v_res_bedrag_btw"/>
|
||||
<xsl:variable name="v_cnt_bedrag_tot" select="$v_cnt_bedrag_sub + $v_cnt_bedrag_btw"/>
|
||||
<xsl:variable name="v_tct_bedrag_tot" select="$v_tct_bedrag_sub + $v_tct_bedrag_btw"/>
|
||||
<xsl:variable name="v_fin_bedrag_tot" select="$v_fin_bedrag_sub + $v_fin_bedrag_btw"/>
|
||||
<tr class="subt2 trblk">
|
||||
<td class="tdtl tdb">Totaal</td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_old_bedrag_tot, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_mut_bedrag_tot, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_res_bedrag_tot, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_new_bedrag_tot, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_cnt_bedrag_tot, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_tct_bedrag_tot, '#.##0', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_fin_bedrag_tot, '#.##0', 'euro')"/></td>
|
||||
</tr>
|
||||
|
||||
<!-- TBODY einde -->
|
||||
<xsl:text disable-output-escaping="yes"></tbody></xsl:text>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<!-- =======================================================
|
||||
BREG_BTW
|
||||
budgetrapportage: overzicht BTW
|
||||
@@ -2642,6 +2823,10 @@
|
||||
<xsl:if test="substring-after(//rapport/where, $p_periode_veld) != ''">
|
||||
<xsl:value-of select="substring-after(//rapport/where, $p_periode_veld)"/>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="//rapport/datumeind != ''">
|
||||
"TO_DATE('"<xsl:value-of select="//rapport/where/datumeind"/>"')"
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="v_periode_start">
|
||||
|
||||
Reference in New Issue
Block a user