TWYN#57971 rapporten inclusief btw
svn path=/Website/branches/v2019.1/; revision=42947
This commit is contained in:
@@ -458,37 +458,86 @@
|
||||
<xsl:call-template name="overzicht_voor_test"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BREG_RUB'">
|
||||
<xsl:call-template name="overzicht_rubrieken"/>
|
||||
<xsl:call-template name="overzicht_rubrieken">
|
||||
<xsl:with-param name="incl_btw">0</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BREG_RUB_INCL'">
|
||||
<xsl:call-template name="overzicht_rubrieken">
|
||||
<xsl:with-param name="incl_btw">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'CONT_ALF'">
|
||||
<xsl:call-template name="contractanten_alfabetisch"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'CONT_RUB'">
|
||||
<xsl:call-template name="contracten_per_rubriek"/>
|
||||
<xsl:call-template name="contracten_per_rubriek">
|
||||
<xsl:with-param name="incl_btw">0</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'CONT_RUB_INCL'">
|
||||
<xsl:call-template name="contracten_per_rubriek">
|
||||
<xsl:with-param name="incl_btw">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<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:call-template name="contracten_per_account">
|
||||
<xsl:with-param name="incl_btw">0</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'CON_ACC1_INCL'">
|
||||
<xsl:call-template name="contracten_per_account">
|
||||
<xsl:with-param name="incl_btw">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'CON_ACC'">
|
||||
<xsl:call-template name="facturen_per_account"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BMUT_NUM'">
|
||||
<xsl:call-template name="budgetmutaties_op_nummer"/>
|
||||
<xsl:call-template name="budgetmutaties_op_nummer">
|
||||
<xsl:with-param name="incl_btw">0</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BMUT_NUM_INCL'">
|
||||
<xsl:call-template name="budgetmutaties_op_nummer">
|
||||
<xsl:with-param name="incl_btw">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BREG_TOT'">
|
||||
<xsl:call-template name="overzicht_budgetrapportage"/>
|
||||
<xsl:call-template name="overzicht_budgetrapportage">
|
||||
<xsl:with-param name="incl_btw">0</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BREG_TOT_INCL'">
|
||||
<xsl:call-template name="overzicht_budgetrapportage">
|
||||
<xsl:with-param name="incl_btw">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BREG_BTW'">
|
||||
<xsl:call-template name="overzicht_btw"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BREG_RES'">
|
||||
<xsl:call-template name="overzicht_reserve"/>
|
||||
<xsl:call-template name="overzicht_reserve">
|
||||
<xsl:with-param name="incl_btw">0</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'BREG_RES_INCL'">
|
||||
<xsl:call-template name="overzicht_reserve">
|
||||
<xsl:with-param name="incl_btw">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'MMW_CONT'">
|
||||
<xsl:call-template name="overzicht_meerminder_opdracht"/>
|
||||
<xsl:call-template name="overzicht_meerminder_opdracht">
|
||||
<xsl:with-param name="incl_btw">0</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'MMW_CONT_INCL'">
|
||||
<xsl:call-template name="overzicht_meerminder_opdracht">
|
||||
<xsl:with-param name="incl_btw">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'MMWINVCO'">
|
||||
<xsl:call-template name="overzicht_meerminder_factuur"/>
|
||||
@@ -629,7 +678,13 @@
|
||||
<tr>
|
||||
<td class="ph_subtitel">
|
||||
<xsl:attribute name="colspan"><xsl:value-of select="$aantal_kolommen"/></xsl:attribute>
|
||||
(alle bedragen zijn in Euro<xsl:if test="$excl_btw = 2"> en excl. BTW</xsl:if>)
|
||||
<xsl:variable name="v_alle_bedragen">alle bedragen zijn in Euro</xsl:variable>
|
||||
<xsl:variable name="v_incl_of_excl">
|
||||
<xsl:if test="$excl_btw = 1"></xsl:if>
|
||||
<xsl:if test="$excl_btw = 2"> en excl. BTW</xsl:if>
|
||||
<xsl:if test="$excl_btw = 3"> en incl. BTW</xsl:if>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="concat('( ', $v_alle_bedragen, $v_incl_of_excl, ' )')"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
@@ -807,6 +862,8 @@
|
||||
=======================================================
|
||||
-->
|
||||
<xsl:template name="overzicht_rubrieken">
|
||||
<xsl:param name="incl_btw"/>
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="5" class="tab_cat_sched nofloat">
|
||||
<xsl:variable name="v_periode">
|
||||
<xsl:call-template name="GET_PERIODE">
|
||||
@@ -823,7 +880,7 @@
|
||||
<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:with-param name="excl_btw">2</xsl:with-param>
|
||||
<xsl:with-param name="excl_btw"><xsl:value-of select="(2 + $incl_btw)"/></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<tr>
|
||||
@@ -865,12 +922,19 @@
|
||||
<xsl:sort select="SCODE"/>
|
||||
<xsl:variable name="v_soortcode" select="SCODE"/>
|
||||
|
||||
<xsl:variable name="v_srt_org_bedrag" select="sum(//data_row[SCODE = $v_soortcode]/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_bgt_bedrag" select="sum(//data_row[SCODE = $v_soortcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_mut_bedrag" select="sum(//data_row[SCODE = $v_soortcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_res_bedrag" select="sum(//data_row[SCODE = $v_soortcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_cnt_bedrag" select="sum(//data_row[SCODE = $v_soortcode]/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_fin_bedrag" select="sum(//data_row[SCODE = $v_soortcode]/FIN_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_org_bedrag_exc" select="sum(//data_row[SCODE = $v_soortcode]/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_bgt_bedrag_exc" select="sum(//data_row[SCODE = $v_soortcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_mut_bedrag_exc" select="sum(//data_row[SCODE = $v_soortcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_res_bedrag_exc" select="sum(//data_row[SCODE = $v_soortcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_cnt_bedrag_exc" select="sum(//data_row[SCODE = $v_soortcode]/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_srt_fin_bedrag_exc" select="sum(//data_row[SCODE = $v_soortcode]/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_srt_org_bedrag" select="$v_srt_org_bedrag_exc + $incl_btw * sum(//data_row[SCODE = $v_soortcode]/ORG_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_srt_bgt_bedrag" select="$v_srt_bgt_bedrag_exc + $incl_btw * sum(//data_row[SCODE = $v_soortcode]/BGT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_srt_mut_bedrag" select="$v_srt_mut_bedrag_exc + $incl_btw * sum(//data_row[SCODE = $v_soortcode]/MUT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_srt_res_bedrag" select="$v_srt_res_bedrag_exc + $incl_btw * sum(//data_row[SCODE = $v_soortcode]/RES_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_srt_cnt_bedrag" select="$v_srt_cnt_bedrag_exc + $incl_btw * sum(//data_row[SCODE = $v_soortcode]/CNT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_srt_fin_bedrag" select="$v_srt_fin_bedrag_exc + $incl_btw * sum(//data_row[SCODE = $v_soortcode]/FIN_BEDRAG_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_srt_tct_bedrag" select="$v_srt_bgt_bedrag - $v_srt_cnt_bedrag"/>
|
||||
<tr>
|
||||
@@ -887,12 +951,19 @@
|
||||
<!-- Bedragen per kostensoort -->
|
||||
|
||||
<!-- Subtotaal per kostengroep -->
|
||||
<xsl:variable name="v_grp_org_bedrag" select="sum(//data_row[GCODE = $v_groepcode]/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_bgt_bedrag" select="sum(//data_row[GCODE = $v_groepcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_mut_bedrag" select="sum(//data_row[GCODE = $v_groepcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_res_bedrag" select="sum(//data_row[GCODE = $v_groepcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_cnt_bedrag" select="sum(//data_row[GCODE = $v_groepcode]/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_fin_bedrag" select="sum(//data_row[GCODE = $v_groepcode]/FIN_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_org_bedrag_exc" select="sum(//data_row[GCODE = $v_groepcode]/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_bgt_bedrag_exc" select="sum(//data_row[GCODE = $v_groepcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_mut_bedrag_exc" select="sum(//data_row[GCODE = $v_groepcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_res_bedrag_exc" select="sum(//data_row[GCODE = $v_groepcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_cnt_bedrag_exc" select="sum(//data_row[GCODE = $v_groepcode]/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_grp_fin_bedrag_exc" select="sum(//data_row[GCODE = $v_groepcode]/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_grp_org_bedrag" select="$v_grp_org_bedrag_exc + $incl_btw * sum(//data_row[GCODE = $v_groepcode]/ORG_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_grp_bgt_bedrag" select="$v_grp_bgt_bedrag_exc + $incl_btw * sum(//data_row[GCODE = $v_groepcode]/BGT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_grp_mut_bedrag" select="$v_grp_mut_bedrag_exc + $incl_btw * sum(//data_row[GCODE = $v_groepcode]/MUT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_grp_res_bedrag" select="$v_grp_res_bedrag_exc + $incl_btw * sum(//data_row[GCODE = $v_groepcode]/RES_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_grp_cnt_bedrag" select="$v_grp_cnt_bedrag_exc + $incl_btw * sum(//data_row[GCODE = $v_groepcode]/CNT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_grp_fin_bedrag" select="$v_grp_fin_bedrag_exc + $incl_btw * sum(//data_row[GCODE = $v_groepcode]/FIN_BEDRAG_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_grp_tct_bedrag" select="$v_grp_bgt_bedrag - $v_grp_cnt_bedrag"/>
|
||||
<tr class="subt2">
|
||||
@@ -911,12 +982,19 @@
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- Totaal per rubriek -->
|
||||
<xsl:variable name="v_tot_org_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_bgt_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_mut_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_res_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_cnt_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_fin_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/FIN_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_org_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_bgt_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_mut_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_res_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_cnt_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_fin_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_tot_org_bedrag" select="$v_tot_org_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_bgt_bedrag" select="$v_tot_bgt_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_mut_bedrag" select="$v_tot_mut_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_res_bedrag" select="$v_tot_res_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_cnt_bedrag" select="$v_tot_cnt_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tot_fin_bedrag" select="$v_tot_fin_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_tot_tct_bedrag" select="$v_tot_bgt_bedrag - $v_tot_cnt_bedrag"/>
|
||||
<tr><td colspan="8"></td></tr>
|
||||
@@ -947,6 +1025,8 @@
|
||||
=======================================================
|
||||
-->
|
||||
<xsl:template name="contracten_per_rubriek">
|
||||
<xsl:param name="incl_btw"/>
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="5" class="tab_cat_sched nofloat">
|
||||
<xsl:variable name="v_periode">
|
||||
<xsl:call-template name="GET_PERIODE">
|
||||
@@ -960,10 +1040,10 @@
|
||||
<thead>
|
||||
<xsl:call-template name="page_select_header">
|
||||
<xsl:with-param name="titel">Overzicht Contracten per rubriek</xsl:with-param>
|
||||
<xsl:with-param name="aantal_kolommen">9</xsl:with-param>
|
||||
<xsl:with-param name="aantal_kolommen"><xsl:value-of select="(9 - $incl_btw)"/></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:with-param name="excl_btw">2</xsl:with-param>
|
||||
<xsl:with-param name="excl_btw"><xsl:value-of select="(1 + 2 * $incl_btw)"/></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<tr class="thr">
|
||||
@@ -973,9 +1053,15 @@
|
||||
<th class="th3">Omschrijving</th>
|
||||
<th class="th3">Kenmerk</th>
|
||||
<th class="th3">Datum</th>
|
||||
<th class="th3 tdtr">Gecontracteerd</th>
|
||||
<th class="th3 tdtr">BTW</th>
|
||||
<th class="th3 tdtr">Facturen</th>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<th class="th3 tdtr">Gecontracteerd<br/>excl. BTW</th>
|
||||
<th class="th3 tdtr">BTW</th>
|
||||
<th class="th3 tdtr">Facturen<br/>excl. BTW</th>
|
||||
</xsl:if>
|
||||
<xsl:if test="$incl_btw = 1">
|
||||
<th class="th3 tdtr">Gecontracteerd</th>
|
||||
<th class="th3 tdtr">Facturen</th>
|
||||
</xsl:if>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -1014,6 +1100,14 @@
|
||||
|
||||
<xsl:if test="MLD_OPDR_MEERWERK=0">
|
||||
<xsl:for-each select="//data_row[GCODE=$v_groepcode and SCODE=$v_soortcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]">
|
||||
<xsl:variable name="v_kosten_kost_exc" select="KOSTEN"/>
|
||||
<xsl:variable name="v_kosten_kost_btw" select="BTW"/>
|
||||
<xsl:variable name="v_facturen_kost_exc" select="FACTUREN"/>
|
||||
<xsl:variable name="v_facturen_kost_btw" select="FACUTREN_BTW"/>
|
||||
|
||||
<xsl:variable name="v_kosten_kost" select="$v_kosten_kost_exc + $incl_btw * $v_kosten_kost_btw"/>
|
||||
<xsl:variable name="v_facturen_kost" select="$v_facturen_kost_exc + $incl_btw * $v_facturen_kost_btw"/>
|
||||
|
||||
<tr>
|
||||
<td><xsl:value-of select="SCODE"/></td>
|
||||
<td><xsl:value-of select="PRS_LEVERANCIER_NR"/></td>
|
||||
@@ -1021,18 +1115,24 @@
|
||||
<td class="tdte"><xsl:value-of select="MLD_OPDR_OMSCHRIJVING"/></td>
|
||||
<td class="tdte"><xsl:value-of select="KENMERK"/></td>
|
||||
<td class="tdtd"><xsl:value-of select="DATUM_P"/></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" style="padding-right:5px;"><xsl:value-of select="format-number(FACTUREN, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_kosten_kost, '#.##0,00', 'euro')"/></td>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_kosten_kost_btw, '#.##0,00', 'euro')"/></td>
|
||||
</xsl:if>
|
||||
<td class="tdtr" style="padding-right:5px;"><xsl:value-of select="format-number($v_facturen_kost, '#.##0,00', 'euro')"/></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="MLD_OPDR_MEERWERK=1">
|
||||
<xsl:variable name="v_mmw_sum_kosten" select="sum(//data_row[SCODE=$v_soortcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/KOSTEN)"/>
|
||||
<xsl:variable name="v_mmw_sum_btw" select="sum(//data_row[SCODE=$v_soortcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/BTW)"/>
|
||||
<xsl:variable name="v_mmw_sum_facturen" select="sum(//data_row[SCODE=$v_soortcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/FACTUREN)"/>
|
||||
<xsl:variable name="v_mmw_omschrijving" select="concat('* ', MLD_OPDR_OMSCHRIJVING)"/>
|
||||
<xsl:variable name="v_mmw_sum_kosten_exc" select="sum(//data_row[SCODE=$v_soortcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/KOSTEN)"/>
|
||||
<xsl:variable name="v_mmw_sum_btw" select="sum(//data_row[SCODE=$v_soortcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/BTW)"/>
|
||||
<xsl:variable name="v_mmw_sum_facturen_exc" select="sum(//data_row[SCODE=$v_soortcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/FACTUREN)"/>
|
||||
<xsl:variable name="v_mmw_sum_facturen_btw" select="sum(//data_row[SCODE=$v_soortcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/FACTUREN_BTW)"/>
|
||||
<xsl:variable name="v_mmw_omschrijving" select="concat('* ', MLD_OPDR_OMSCHRIJVING)"/>
|
||||
|
||||
<xsl:variable name="v_mmw_sum_kosten" select="$v_mmw_sum_kosten_exc + $incl_btw * $v_mmw_sum_btw"/>
|
||||
<xsl:variable name="v_mmw_sum_facturen" select="$v_mmw_sum_facturen_exc + $incl_btw * $v_mmw_sum_facturen_btw"/>
|
||||
|
||||
<tr>
|
||||
<td><xsl:value-of select="SCODE"/></td>
|
||||
@@ -1042,38 +1142,74 @@
|
||||
<td><xsl:value-of select="KENMERK"/></td>
|
||||
<td class="tdtd"><xsl:value-of select="PRINTDATUM"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mmw_sum_kosten, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mmw_sum_btw, '#.##0,00', 'euro')"/></td>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mmw_sum_btw, '#.##0,00', 'euro')"/></td>
|
||||
</xsl:if>
|
||||
<td class="tdtr" style="padding-right:5px;"><xsl:value-of select="format-number($v_mmw_sum_facturen, '#.##0,00', 'euro')"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- subtotalen -->
|
||||
<xsl:variable name="v_kosten_sub_exc" select="sum(//data_row[GCODE = $v_groepcode]/KOSTEN)"/>
|
||||
<xsl:variable name="v_kosten_sub_btw" select="sum(//data_row[GCODE = $v_groepcode]/BTW)"/>
|
||||
<xsl:variable name="v_facturen_sub_exc" select="sum(//data_row[GCODE = $v_groepcode]/FACTUREN)"/>
|
||||
<xsl:variable name="v_facturen_sub_btw" select="sum(//data_row[GCODE = $v_groepcode]/FACTUREN_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_kosten_sub" select="$v_kosten_sub_exc + $incl_btw * $v_kosten_sub_btw"/>
|
||||
<xsl:variable name="v_facturen_sub" select="$v_facturen_sub_exc + $incl_btw * $v_facturen_sub_btw"/>
|
||||
|
||||
<tr class="footer">
|
||||
<td colspan="3"><b><xsl:value-of select="GCODE"/></b></td>
|
||||
<td colspan="3"><b>Subtotaal</b></td>
|
||||
<td class="tdtr"><b><xsl:value-of select="format-number(sum(//data_row[GCODE = $v_groepcode]/KOSTEN), '#.##0,00', 'euro')"/></b></td>
|
||||
<td class="tdtr"><b><xsl:value-of select="format-number(sum(//data_row[GCODE = $v_groepcode]/BTW), '#.##0,00', 'euro')"/></b></td>
|
||||
<td class="tdtr" style="padding-right:5px;"><b><xsl:value-of select="format-number(sum(//data_row[GCODE = $v_groepcode]/FACTUREN), '#.##0,00', 'euro')"/></b></td>
|
||||
<td class="tdtr"><b><xsl:value-of select="format-number($v_kosten_sub, '#.##0,00', 'euro')"/></b></td>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<td class="tdtr"><b><xsl:value-of select="format-number($v_kosten_sub_btw, '#.##0,00', 'euro')"/></b></td>
|
||||
</xsl:if>
|
||||
<td class="tdtr" style="padding-right:5px;"><b><xsl:value-of select="format-number($v_facturen_sub, '#.##0,00', 'euro')"/></b></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- totalen -->
|
||||
<xsl:variable name="v_kosten_tot_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/KOSTEN)"/>
|
||||
<xsl:variable name="v_kosten_tot_btw" select="sum(//data_row[RCODE = $v_rubriekcode]/BTW)"/>
|
||||
<xsl:variable name="v_facturen_tot_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/FACTUREN)"/>
|
||||
<xsl:variable name="v_facturen_tot_btw" select="sum(//data_row[RCODE = $v_rubriekcode]/FACTUREN_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_kosten_tot" select="$v_kosten_tot_exc + $incl_btw * $v_kosten_tot_btw"/>
|
||||
<xsl:variable name="v_facturen_tot" select="$v_facturen_tot_exc + $incl_btw * $v_facturen_tot_btw"/>
|
||||
|
||||
<tr><td colspan="9"> </td></tr>
|
||||
<tr class="footer">
|
||||
<td colspan="3"><b><xsl:value-of select="RCODE"/></b></td>
|
||||
<td colspan="3"><b>Totaal</b></td>
|
||||
<td class="tdtr"><b><xsl:value-of select="format-number(sum(//data_row[RCODE = $v_rubriekcode]/KOSTEN), '#.##0,00', 'euro')"/></b></td>
|
||||
<td class="tdtr"><b><xsl:value-of select="format-number(sum(//data_row[RCODE = $v_rubriekcode]/BTW), '#.##0,00', 'euro')"/></b></td>
|
||||
<td class="tdtr" style="padding-right:5px;"><b><xsl:value-of select="format-number(sum(//data_row[RCODE = $v_rubriekcode]/FACTUREN), '#.##0,00', 'euro')"/></b></td>
|
||||
<td class="tdtr"><b><xsl:value-of select="format-number($v_kosten_tot, '#.##0,00', 'euro')"/></b></td>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<td class="tdtr"><b><xsl:value-of select="format-number($v_kosten_tot_btw, '#.##0,00', 'euro')"/></b></td>
|
||||
</xsl:if>
|
||||
<td class="tdtr" style="padding-right:5px;"><b><xsl:value-of select="format-number($v_facturen_tot, '#.##0,00', 'euro')"/></b></td>
|
||||
</tr>
|
||||
<tr><td colspan="9"> </td></tr>
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- totaal generaal -->
|
||||
<xsl:variable name="v_kosten_gen_exc" select="sum(//data_row/KOSTEN)"/>
|
||||
<xsl:variable name="v_kosten_gen_btw" select="sum(//data_row/BTW)"/>
|
||||
<xsl:variable name="v_facturen_gen_exc" select="sum(//data_row/FACTUREN)"/>
|
||||
<xsl:variable name="v_facturen_gen_btw" select="sum(//data_row/FACTUREN_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_kosten_gen" select="$v_kosten_gen_exc + $incl_btw * $v_kosten_gen_btw"/>
|
||||
<xsl:variable name="v_facturen_gen" select="$v_facturen_gen_exc + $incl_btw * $v_facturen_gen_btw"/>
|
||||
|
||||
<tr class="subt2 trblk">
|
||||
<td colspan="3" class="th3"><b><xsl:value-of select="RCODE"/></b></td>
|
||||
<td colspan="3" class="th3"><b>TOTAAL</b></td>
|
||||
<td class="th3 tdtr" style="padding-right:0px;"><b><xsl:value-of select="format-number(sum(//data_row/KOSTEN), '#.##0,00', 'euro')"/></b></td>
|
||||
<td class="th3 tdtr" style="padding-right:0px;"><b><xsl:value-of select="format-number(sum(//data_row/BTW), '#.##0,00', 'euro')"/></b></td>
|
||||
<td class="th3 tdtr"><b><xsl:value-of select="format-number(sum(//data_row/FACTUREN), '#.##0,00', 'euro')"/></b></td>
|
||||
<td class="th3 tdtr" style="padding-right:0px;"><b><xsl:value-of select="format-number($v_kosten_gen, '#.##0,00', 'euro')"/></b></td>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<td class="th3 tdtr" style="padding-right:0px;"><b><xsl:value-of select="format-number($v_kosten_gen_btw, '#.##0,00', 'euro')"/></b></td>
|
||||
</xsl:if>
|
||||
<td class="th3 tdtr"><b><xsl:value-of select="format-number($v_facturen_gen, '#.##0,00', 'euro')"/></b></td>
|
||||
</tr>
|
||||
<xsl:text disable-output-escaping="yes"></tbody></xsl:text>
|
||||
<!-- TBODY einde -->
|
||||
@@ -1234,6 +1370,8 @@
|
||||
2. alle facturen (van een account)
|
||||
-->
|
||||
<xsl:template name="contracten_per_account">
|
||||
<xsl:param name="incl_btw"/>
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="5" class="tab_cat_sched nofloat">
|
||||
<xsl:variable name="v_periode">
|
||||
<xsl:call-template name="GET_PERIODE">
|
||||
@@ -1247,10 +1385,10 @@
|
||||
<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:with-param name="aantal_kolommen"><xsl:value-of select="(9 - $incl_btw)"/></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:with-param name="excl_btw">1</xsl:with-param>
|
||||
<xsl:with-param name="excl_btw"><xsl:value-of select="(1 + 2 * $incl_btw)"/></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<tr class="thr">
|
||||
@@ -1260,9 +1398,15 @@
|
||||
<th class="th3 tdtl">Omschrijving</th>
|
||||
<th class="th3 tdtl">Kenmerk</th>
|
||||
<th class="th3 tdtd">Datum</th>
|
||||
<th class="th3 tdtr">Gecontracteerd<br/>excl. BTW</th>
|
||||
<th class="th3 tdtr">BTW</th>
|
||||
<th class="th3 tdtr">Facturen</th>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<th class="th3 tdtr">Gecontracteerd<br/>excl. BTW</th>
|
||||
<th class="th3 tdtr">BTW</th>
|
||||
<th class="th3 tdtr">Facturen<br/>excl. BTW</th>
|
||||
</xsl:if>
|
||||
<xsl:if test="$incl_btw = 1">
|
||||
<th class="th3 tdtr">Gecontracteerd</th>
|
||||
<th class="th3 tdtr">Facturen</th>
|
||||
</xsl:if>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -1285,10 +1429,12 @@
|
||||
|
||||
<xsl:call-template name="DISPLAY_CONTRACTEN_ACC">
|
||||
<xsl:with-param name="p_accountcode" select="ACCOUNTCODE"/>
|
||||
<xsl:with-param name="p_incl_btw" select="$incl_btw"/>
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:call-template name="DISPLAY_CONTRACTEN_ACC_TOTAAL">
|
||||
<xsl:with-param name="p_accountcode" select="ACCOUNTCODE"/>
|
||||
<xsl:with-param name="p_incl_btw" select="$incl_btw"/>
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:call-template name="DISPLAY_LEEG_BLOK">
|
||||
@@ -1299,12 +1445,23 @@
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- totalen -->
|
||||
<xsl:variable name="v_opdr_kosten_tot_exc" select="sum(//data_row/MLD_OPDR_KOSTEN)"/>
|
||||
<xsl:variable name="v_opdr_kosten_tot_btw" select="sum(//data_row/MLD_OPDR_KOSTEN_BTW)"/>
|
||||
<xsl:variable name="v_facturen_totaal_exc" select="sum(//data_row/FIN_FACTUUR_TOTAAL)"/>
|
||||
<xsl:variable name="v_facturen_totaal_btw" select="sum(//data_row/FIN_FACTUUR_TOTAAL_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_opdr_kosten_tot" select="$v_opdr_kosten_tot_exc + $incl_btw * $v_opdr_kosten_tot_btw"/>
|
||||
<xsl:variable name="v_facturen_totaal" select="$v_facturen_totaal_exc + $incl_btw * $v_facturen_totaal_btw"/>
|
||||
|
||||
<tr class="subt2 trblk">
|
||||
<td colspan="3"></td>
|
||||
<td class="tdtl tdb" colspan="3">Totaal</td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number(sum(//data_row/MLD_OPDR_KOSTEN), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number(sum(//data_row/MLD_OPDR_KOSTEN_BTW), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number(sum(//data_row/FIN_FACTUUR_TOTAAL), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_opdr_kosten_tot, '#.##0,00', 'euro')"/></td>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_opdr_kosten_tot_btw, '#.##0,00', 'euro')"/></td>
|
||||
</xsl:if>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_facturen_totaal, '#.##0,00', 'euro')"/></td>
|
||||
</tr>
|
||||
<xsl:text disable-output-escaping="yes"></tbody></xsl:text>
|
||||
<!-- TBODY einde -->
|
||||
@@ -1444,6 +1601,8 @@
|
||||
=======================================================
|
||||
-->
|
||||
<xsl:template name="budgetmutaties_op_nummer">
|
||||
<xsl:param name="incl_btw"/>
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="5" class="tab_cat_sched nofloat">
|
||||
<xsl:variable name="v_periode">
|
||||
<xsl:call-template name="GET_PERIODE">
|
||||
@@ -1454,19 +1613,24 @@
|
||||
<thead>
|
||||
<xsl:call-template name="page_select_header">
|
||||
<xsl:with-param name="titel">Budgetmutaties</xsl:with-param>
|
||||
<xsl:with-param name="aantal_kolommen">7</xsl:with-param>
|
||||
<xsl:with-param name="aantal_kolommen"><xsl:value-of select="(7 - $incl_btw)"/></xsl:with-param>
|
||||
<xsl:with-param name="periode"><xsl:value-of select="$v_periode"/></xsl:with-param>
|
||||
<xsl:with-param name="versie">0</xsl:with-param>
|
||||
<xsl:with-param name="excl_btw">2</xsl:with-param>
|
||||
<xsl:with-param name="excl_btw"><xsl:value-of select="(1 + 2 * $incl_btw)"/></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<tr class="thr">
|
||||
<th class="th3">Volgnr.</th>
|
||||
<th class="th3">Code</th>
|
||||
<th class="th3">Omschrijving</th>
|
||||
<th class="th3 tdtr">Bedrag excl.</th>
|
||||
<th class="th3 tdtr">Bedrag btw.</th>
|
||||
<th class="th3">Datum<br/>mutatie</th>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<th class="th3 tdtr">Bedrag excl.</th>
|
||||
<th class="th3 tdtr">Bedrag btw.</th>
|
||||
</xsl:if>
|
||||
<xsl:if test="$incl_btw = 1">
|
||||
<th class="th3 tdtr">Bedrag incl.</th>
|
||||
</xsl:if>
|
||||
<th class="th3 fc" >Datum<br/>mutatie</th>
|
||||
<th class="th3">Reden mutatie</th>
|
||||
|
||||
</tr>
|
||||
@@ -1479,13 +1643,18 @@
|
||||
<xsl:variable name="v_code_volgnr">
|
||||
<xsl:value-of select="MUTATIECODE"/><xsl:value-of select="MUTATIEVOLGNR"/>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="v_mutatiebedrag_exc" select="MUTATIEBEDRAG_EXC"/>
|
||||
<xsl:variable name="v_mutatiebedrag_btw" select="MUTATIEBEDRAG_BTW"/>
|
||||
<xsl:variable name="v_mutatiebedrag" select="$v_mutatiebedrag_exc + $incl_btw * $v_mutatiebedrag_btw"/>
|
||||
<tr>
|
||||
<td class="tdt"><xsl:value-of select="$v_code_volgnr"/></td>
|
||||
<td class="tdt"><xsl:value-of select="KOSTENCODE"/></td>
|
||||
<td class="tdt tdte"><xsl:value-of select="KOSTENNAAM"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(MUTATIEBEDRAG_EXC, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(MUTATIEBEDRAG_BTW, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtd"><xsl:value-of select="MUTATIEDATUM_P"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mutatiebedrag, '#.##0,00', 'euro')"/></td>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mutatiebedrag_btw, '#.##0,00', 'euro')"/></td>
|
||||
</xsl:if>
|
||||
<td class="tdtd fc"><xsl:value-of select="MUTATIEDATUM_P"/></td>
|
||||
<td class="tdt tdte"><xsl:value-of select="MUTATIEREDEN"/></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
@@ -1495,12 +1664,18 @@
|
||||
<xsl:variable name="v_totaal_inc" select="$v_totaal_exc + $v_totaal_btw"/>
|
||||
<tr class="subt2 trblk">
|
||||
<td colspan='2'></td>
|
||||
<td class="tdtl tdb">Totaal<br/>Totaal incl. btw</td>
|
||||
<td class="tdtr tdb">
|
||||
<xsl:value-of select="format-number($v_totaal_exc, '#.##0,00', 'euro')"/><br/>
|
||||
<xsl:value-of select="format-number($v_totaal_inc, '#.##0,00', 'euro')"/>
|
||||
</td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_totaal_btw, '#.##0,00', 'euro')"/></td>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<td class="tdtl tdb">Totaal<br/>Totaal incl. btw</td>
|
||||
<td class="tdtr tdb">
|
||||
<xsl:value-of select="format-number($v_totaal_exc, '#.##0,00', 'euro')"/><br/>
|
||||
<xsl:value-of select="format-number($v_totaal_inc, '#.##0,00', 'euro')"/>
|
||||
</td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_totaal_btw, '#.##0,00', 'euro')"/></td>
|
||||
</xsl:if>
|
||||
<xsl:if test="$incl_btw = 1">
|
||||
<td class="tdtl tdb">Totaal</td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_totaal_inc, '#.##0,00', 'euro')"/></td>
|
||||
</xsl:if>
|
||||
<td colspan='2'></td>
|
||||
</tr>
|
||||
|
||||
@@ -1515,6 +1690,8 @@
|
||||
=======================================================
|
||||
-->
|
||||
<xsl:template name="overzicht_budgetrapportage">
|
||||
<xsl:param name="incl_btw"/>
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="5" class="tab_cat_sched nofloat">
|
||||
<xsl:variable name="v_periode">
|
||||
<xsl:call-template name="GET_PERIODE">
|
||||
@@ -1531,7 +1708,7 @@
|
||||
<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:with-param name="excl_btw">2</xsl:with-param>
|
||||
<xsl:with-param name="excl_btw"><xsl:value-of select="(2 + $incl_btw)"/></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<tr class="thr">
|
||||
@@ -1553,12 +1730,20 @@
|
||||
<xsl:sort select="RCODE"/>
|
||||
<xsl:variable name="v_rubriekcode" select="RCODE"/>
|
||||
|
||||
<xsl:variable name="v_org_bedrag" select="sum(//data_row[RCODE = $v_rubriekcode]/ORG_BEDRAG_EXC)"/>
|
||||
<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_org_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_bgt_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_res_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_cnt_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_fin_bedrag_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_org_bedrag" select="$v_org_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/ORG_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_bgt_bedrag" select="$v_bgt_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/BGT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_mut_bedrag" select="$v_mut_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/MUT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_res_bedrag" select="$v_res_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_cnt_bedrag" select="$v_cnt_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/CNT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_fin_bedrag" select="$v_fin_bedrag_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/FIN_BEDRAG_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_tct_bedrag" select="$v_bgt_bedrag - $v_cnt_bedrag"/>
|
||||
|
||||
<tr><td class="tdtl" colspan="8"> </td></tr>
|
||||
@@ -1576,12 +1761,20 @@
|
||||
<tr><td class="tdtl" colspan="8"> </td></tr>
|
||||
|
||||
<!-- subtotaal rubrieken -->
|
||||
<xsl:variable name="v_org_bedrag_rub" select="sum(//data_row[RCODE != 'R']/ORG_BEDRAG_EXC)"/>
|
||||
<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_org_bedrag_rub_exc" select="sum(//data_row[RCODE != 'R']/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_bgt_bedrag_rub_exc" select="sum(//data_row[RCODE != 'R']/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag_rub_exc" select="sum(//data_row[RCODE != 'R']/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_res_bedrag_rub_exc" select="sum(//data_row[RCODE != 'R']/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_cnt_bedrag_rub_exc" select="sum(//data_row[RCODE != 'R']/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_fin_bedrag_rub_exc" select="sum(//data_row[RCODE != 'R']/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_org_bedrag_rub" select="$v_org_bedrag_rub_exc + $incl_btw * sum(//data_row[RCODE != 'R']/ORG_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_bgt_bedrag_rub" select="$v_bgt_bedrag_rub_exc + $incl_btw * sum(//data_row[RCODE != 'R']/BGT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_mut_bedrag_rub" select="$v_mut_bedrag_rub_exc + $incl_btw * sum(//data_row[RCODE != 'R']/MUT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_res_bedrag_rub" select="$v_res_bedrag_rub_exc + $incl_btw * sum(//data_row[RCODE != 'R']/RES_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_cnt_bedrag_rub" select="$v_cnt_bedrag_rub_exc + $incl_btw * sum(//data_row[RCODE != 'R']/CNT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_fin_bedrag_rub" select="$v_fin_bedrag_rub_exc + $incl_btw * sum(//data_row[RCODE != 'R']/FIN_BEDRAG_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_tct_bedrag_rub" select="$v_bgt_bedrag_rub - $v_cnt_bedrag_rub"/>
|
||||
|
||||
<tr class="subt2 trblk">
|
||||
@@ -1600,10 +1793,16 @@
|
||||
<xsl:sort select="RCODE"/>
|
||||
<xsl:variable name="v_rubriekcode" select="RCODE"/>
|
||||
|
||||
<xsl:variable name="v_org_bedrag_res" select="sum(//data_row[RCODE = $v_rubriekcode]/ORG_BEDRAG_EXC)"/>
|
||||
<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_org_bedrag_res_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_bgt_bedrag_res_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag_res_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_res_bedrag_res_exc" select="sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_org_bedrag_res" select="$v_org_bedrag_res_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/ORG_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_bgt_bedrag_res" select="$v_bgt_bedrag_res_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/BGT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_mut_bedrag_res" select="$v_mut_bedrag_res_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/MUT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_res_bedrag_res" select="$v_res_bedrag_res_exc + $incl_btw * sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_cnt_bedrag_res" select="0"/>
|
||||
<xsl:variable name="v_tct_bedrag_res" select="$v_bgt_bedrag_res - $v_cnt_bedrag_res"/>
|
||||
|
||||
@@ -1628,16 +1827,18 @@
|
||||
<xsl:variable name="v_fin_bedrag_sub" select="sum(//data_row/FIN_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_tct_bedrag_sub" select="$v_bgt_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_org_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_bgt_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>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<tr class="subt2 trblk">
|
||||
<td class="tdtd tdbi">Totaal excl. BTW</td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_org_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_bgt_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>
|
||||
</xsl:if>
|
||||
|
||||
<!-- BTW alle rubrieken, incl reserve -->
|
||||
<xsl:variable name="v_org_bedrag_btw" select="sum(//data_row/ORG_BEDRAG_BTW)"/>
|
||||
@@ -1648,16 +1849,18 @@
|
||||
<xsl:variable name="v_fin_bedrag_btw" select="sum(//data_row/FIN_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_tct_bedrag_btw" select="$v_bgt_bedrag_btw - $v_cnt_bedrag_btw"/>
|
||||
|
||||
<tr class="subt2">
|
||||
<td class="tdt">BTW</td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_org_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_bgt_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>
|
||||
<xsl:if test="$incl_btw = 0">
|
||||
<tr class="subt2">
|
||||
<td class="tdt">BTW</td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_org_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_bgt_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>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Totaal alle rubrieken inclusief btw -->
|
||||
<xsl:variable name="v_org_bedrag_tot" select="$v_org_bedrag_sub + $v_org_bedrag_btw"/>
|
||||
@@ -1805,6 +2008,8 @@
|
||||
=======================================================
|
||||
-->
|
||||
<xsl:template name="overzicht_reserve">
|
||||
<xsl:param name="incl_btw"/>
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="5" class="tab_cat_sched nofloat">
|
||||
<xsl:variable name="v_periode">
|
||||
<xsl:call-template name="GET_PERIODE">
|
||||
@@ -1821,7 +2026,7 @@
|
||||
<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:with-param name="excl_btw">2</xsl:with-param>
|
||||
<xsl:with-param name="excl_btw"><xsl:value-of select="(2 + $incl_btw)"/></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<tr class="thr">
|
||||
@@ -1844,8 +2049,12 @@
|
||||
<xsl:sort select="RCODE"/>
|
||||
<xsl:variable name="v_rubriekcode" select="RCODE"/>
|
||||
|
||||
<xsl:variable name="v_org_bedrag_res" select="sum(//data_row[RCODE = 'R']/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag_res" select="sum(//data_row[RCODE = 'R']/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_org_bedrag_res_exc" select="sum(//data_row[RCODE = 'R']/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag_res_exc" select="sum(//data_row[RCODE = 'R']/MUT_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_org_bedrag_res" select="$v_org_bedrag_res_exc + $incl_btw * sum(//data_row[RCODE = 'R']/ORG_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_mut_bedrag_res" select="$v_mut_bedrag_res_exc + $incl_btw * sum(//data_row[RCODE = 'R']/MUT_BEDRAG_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_res_bedrag_res" select="0"/>
|
||||
<xsl:variable name="v_bgt_bedrag_res" select="$v_org_bedrag_res + $v_mut_bedrag_res + $v_res_bedrag_res"/>
|
||||
<xsl:variable name="v_cnt_bedrag_res" select="0"/>
|
||||
@@ -1868,9 +2077,10 @@
|
||||
<xsl:sort select="RCODE"/>
|
||||
<xsl:variable name="v_rubriekcode" select="RCODE"/>
|
||||
|
||||
<xsl:variable name="v_res_bedrag_exc" select="-1 * sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_res_bedrag" select="$v_res_bedrag_exc + $incl_btw * -1 * sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_org_bedrag" select="0"/>
|
||||
<xsl:variable name="v_mut_bedrag" select="0"/>
|
||||
<xsl:variable name="v_res_bedrag" select="-1 * sum(//data_row[RCODE = $v_rubriekcode]/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_bgt_bedrag" select="$v_org_bedrag + $v_mut_bedrag + $v_res_bedrag"/>
|
||||
<xsl:variable name="v_cnt_bedrag" select="0"/>
|
||||
<xsl:variable name="v_tct_bedrag" select="$v_bgt_bedrag - $v_cnt_bedrag"/>
|
||||
@@ -1891,13 +2101,21 @@
|
||||
<tr class="subt2"><td colspan="8"></td></tr>
|
||||
|
||||
<!-- subtotaal rubrieken en reserve -->
|
||||
<xsl:variable name="v_org_bedrag_sub" select="sum(//data_row[RCODE = 'R']/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag_sub" select="sum(//data_row[RCODE = 'R']/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_res_bedrag_sub" select="sum(//data_row[RCODE = 'R']/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_bgt_bedrag_sub" select="sum(//data_row[RCODE = 'R']/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_cnt_bedrag_sub" select="sum(//data_row[RCODE = 'R']/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_org_bedrag_sub_exc" select="sum(//data_row[RCODE = 'R']/ORG_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_mut_bedrag_sub_exc" select="sum(//data_row[RCODE = 'R']/MUT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_res_bedrag_sub_exc" select="sum(//data_row[RCODE = 'R']/RES_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_bgt_bedrag_sub_exc" select="sum(//data_row[RCODE = 'R']/BGT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_cnt_bedrag_sub_exc" select="sum(//data_row[RCODE = 'R']/CNT_BEDRAG_EXC)"/>
|
||||
<xsl:variable name="v_fin_bedrag_sub_exc" select="sum(//data_row[RCODE = 'R']/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<xsl:variable name="v_org_bedrag_sub" select="$v_org_bedrag_sub_exc + $incl_btw * sum(//data_row[RCODE = 'R']/ORG_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_mut_bedrag_sub" select="$v_mut_bedrag_sub_exc + $incl_btw * sum(//data_row[RCODE = 'R']/MUT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_res_bedrag_sub" select="$v_res_bedrag_sub_exc + $incl_btw * sum(//data_row[RCODE = 'R']/RES_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_bgt_bedrag_sub" select="$v_bgt_bedrag_sub_exc + $incl_btw * sum(//data_row[RCODE = 'R']/BGT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_cnt_bedrag_sub" select="$v_cnt_bedrag_sub_exc + $incl_btw * sum(//data_row[RCODE = 'R']/CNT_BEDRAG_BTW)"/>
|
||||
<xsl:variable name="v_fin_bedrag_sub" select="$v_fin_bedrag_sub_exc + $incl_btw * sum(//data_row[RCODE = 'R']/FIN_BEDRAG_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_tct_bedrag_sub" select="$v_bgt_bedrag_sub - $v_cnt_bedrag_sub"/>
|
||||
<xsl:variable name="v_fin_bedrag_sub" select="sum(//data_row[RCODE = 'R']/FIN_BEDRAG_EXC)"/>
|
||||
|
||||
<tr class="subt2 trblk">
|
||||
<td class="tdtl">Totaal Reserve</td>
|
||||
@@ -1921,6 +2139,8 @@
|
||||
=======================================================
|
||||
-->
|
||||
<xsl:template name="overzicht_meerminder_opdracht">
|
||||
<xsl:param name="incl_btw"/>
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="5" class="tab_cat_sched nofloat">
|
||||
<xsl:variable name="v_periode">
|
||||
<xsl:call-template name="GET_PERIODE">
|
||||
@@ -1934,7 +2154,7 @@
|
||||
<xsl:with-param name="aantal_kolommen">9</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:with-param name="excl_btw">2</xsl:with-param>
|
||||
<xsl:with-param name="excl_btw"><xsl:value-of select="(2 + $incl_btw)"/></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<tr class="thr">
|
||||
@@ -1981,46 +2201,81 @@
|
||||
<!-- alle opdrachten per kostensoort -->
|
||||
<xsl:for-each select="//data_row[SCODE=$v_soortcode and PRS_BEDRIJF_KEY=$v_bedrijf_key and MLD_OPDR_ORDERNR=$v_ordernr]">
|
||||
<xsl:sort select="MLD_OPDR_BEDRIJFOPDR_VOLGNR" data-type="number"/>
|
||||
|
||||
<xsl:variable name="v_raming_kost_exc" select="RAMING"/>
|
||||
<xsl:variable name="v_contract_kost_exc" select="GECONTRACTEERD"/>
|
||||
<xsl:variable name="v_factuur_kost_exc" select="FIN_FACTUUR_TOTAAL"/>
|
||||
|
||||
<!-- Als raming=null dan is raming + btw (null + x = null) ook null -->
|
||||
<!-- Idem voor gecontracteerd -->
|
||||
<xsl:variable name="v_raming_kost" select="$v_raming_kost_exc + $incl_btw * CONTRACT_BTW"/>
|
||||
<xsl:variable name="v_contract_kost" select="$v_contract_kost_exc + $incl_btw * CONTRACT_BTW"/>
|
||||
<xsl:variable name="v_factuur_kost" select="$v_factuur_kost_exc + $incl_btw * FIN_FACTUUR_TOTAAL_BTW"/>
|
||||
|
||||
<tr class="trline">
|
||||
<td class="tdtl"> </td>
|
||||
<td class="tdtr tdpr"><xsl:value-of select="MLD_OPDR_BEDRIJFOPDR_VOLGNR"/></td>
|
||||
<td class="tdtl tdwide tdnw" ><xsl:value-of select="MLD_OPDR_OMSCHRIJVING"/></td>
|
||||
<td class="tdtl tdnw" ><xsl:value-of select="MLD_OPDR_ID"/></td>
|
||||
<td class="tdtd"><xsl:value-of select="MLD_OPDR_DATUMBEGIN_P"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(RAMING, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(GECONTRACTEERD, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdpr"><xsl:value-of select="format-number(FIN_FACTUUR_TOTAAL, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtl"><xsl:value-of select="MLD_STATUSOPDR_OMS"/></td>
|
||||
<td class="tdtl tdwide tdnw"><xsl:value-of select="MLD_OPDR_OMSCHRIJVING"/></td>
|
||||
<td class="tdtl tdnw"><xsl:value-of select="MLD_OPDR_ID"/></td>
|
||||
<td class="tdtd"><xsl:value-of select="MLD_OPDR_DATUMBEGIN_P"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_raming_kost, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_contract_kost, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdpr"><xsl:value-of select="format-number($v_factuur_kost, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtl"><xsl:value-of select="MLD_STATUSOPDR_OMS"/></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- subtotaal per kostensoort -->
|
||||
<xsl:variable name="v_raming_sub_exc" select="sum(//data_row[SCODE=$v_soortcode and PRS_BEDRIJF_KEY=$v_bedrijf_key and MLD_OPDR_ORDERNR=$v_ordernr]/RAMING)"/>
|
||||
<xsl:variable name="v_contract_sub_exc" select="sum(//data_row[SCODE=$v_soortcode and PRS_BEDRIJF_KEY=$v_bedrijf_key and MLD_OPDR_ORDERNR=$v_ordernr]/GECONTRACTEERD)"/>
|
||||
<xsl:variable name="v_factuur_sub_exc" select="sum(//data_row[SCODE=$v_soortcode and PRS_BEDRIJF_KEY=$v_bedrijf_key and MLD_OPDR_ORDERNR=$v_ordernr]/FIN_FACTUUR_TOTAAL)"/>
|
||||
|
||||
<xsl:variable name="v_raming_sub" select="$v_raming_sub_exc + $incl_btw * sum(//data_row[SCODE=$v_soortcode and PRS_BEDRIJF_KEY=$v_bedrijf_key and MLD_OPDR_ORDERNR=$v_ordernr and MLD_STATUSOPDR_OMS = 'Raming']/CONTRACT_BTW)"/>
|
||||
<xsl:variable name="v_contract_sub" select="$v_contract_sub_exc + $incl_btw * sum(//data_row[SCODE=$v_soortcode and PRS_BEDRIJF_KEY=$v_bedrijf_key and MLD_OPDR_ORDERNR=$v_ordernr and MLD_STATUSOPDR_OMS != 'Raming']/CONTRACT_BTW)"/>
|
||||
<xsl:variable name="v_factuur_sub" select="$v_factuur_sub_exc + $incl_btw * sum(//data_row[SCODE=$v_soortcode and PRS_BEDRIJF_KEY=$v_bedrijf_key and MLD_OPDR_ORDERNR=$v_ordernr]/FIN_FACTUUR_TOTAAL_BTW)"/>
|
||||
|
||||
<tr class="trline">
|
||||
<td class="tdtl tdbi"><xsl:value-of select="SCODE"/></td>
|
||||
<td></td>
|
||||
<td class="tdtl tdbi" colspan="3">Subtotaal</td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number(sum(//data_row[SCODE=$v_soortcode and PRS_BEDRIJF_KEY=$v_bedrijf_key and MLD_OPDR_ORDERNR=$v_ordernr]/RAMING), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number(sum(//data_row[SCODE=$v_soortcode and PRS_BEDRIJF_KEY=$v_bedrijf_key and MLD_OPDR_ORDERNR=$v_ordernr]/GECONTRACTEERD), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdbi tdpr"><xsl:value-of select="format-number(sum(//data_row[SCODE=$v_soortcode and PRS_BEDRIJF_KEY=$v_bedrijf_key and MLD_OPDR_ORDERNR=$v_ordernr]/FIN_FACTUUR_TOTAAL), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_raming_sub, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_contract_sub, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdbi tdpr"><xsl:value-of select="format-number($v_factuur_sub, '#.##0,00', 'euro')"/></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr class="trline"><td colspan="9"> </td></tr>
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- totaal per contractant -->
|
||||
<xsl:variable name="v_raming_tot_exc" select="sum(//data_row[PRS_BEDRIJF_KEY = $v_bedrijf_key]/RAMING)"/>
|
||||
<xsl:variable name="v_contract_tot_exc" select="sum(//data_row[PRS_BEDRIJF_KEY = $v_bedrijf_key]/GECONTRACTEERD)"/>
|
||||
<xsl:variable name="v_factuur_tot_exc" select="sum(//data_row[PRS_BEDRIJF_KEY = $v_bedrijf_key]/FIN_FACTUUR_TOTAAL)"/>
|
||||
|
||||
<xsl:variable name="v_raming_tot" select="$v_raming_tot_exc + $incl_btw * sum(//data_row[PRS_BEDRIJF_KEY = $v_bedrijf_key and MLD_STATUSOPDR_OMS = 'Raming']/CONTRACT_BTW)"/>
|
||||
<xsl:variable name="v_contract_tot" select="$v_contract_tot_exc + $incl_btw * sum(//data_row[PRS_BEDRIJF_KEY = $v_bedrijf_key and MLD_STATUSOPDR_OMS != 'Raming']/CONTRACT_BTW)"/>
|
||||
<xsl:variable name="v_factuur_tot" select="$v_factuur_tot_exc + $incl_btw * sum(//data_row[PRS_BEDRIJF_KEY = $v_bedrijf_key]/FIN_FACTUUR_TOTAAL_BTW)"/>
|
||||
|
||||
<tr class="subt2 trblk">
|
||||
<td class="tdtl tdb"><xsl:value-of select="PRS_LEVERANCIER_NR"/></td>
|
||||
<td></td>
|
||||
<td class="tdtl tdb" colspan="3">Totaal   <xsl:value-of select="PRS_BEDRIJF_NAAM"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number(sum(//data_row[PRS_BEDRIJF_KEY = $v_bedrijf_key]/RAMING), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number(sum(//data_row[PRS_BEDRIJF_KEY = $v_bedrijf_key]/GECONTRACTEERD), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb tdpr"><xsl:value-of select="format-number(sum(//data_row[PRS_BEDRIJF_KEY = $v_bedrijf_key]/FIN_FACTUUR_TOTAAL), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_raming_tot, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_contract_tot, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb tdpr"><xsl:value-of select="format-number($v_factuur_tot, '#.##0,00', 'euro')"/></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr style="page-break-after: always"/>
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- totaal meerminderwerk in filter (project/subproject) -->
|
||||
<xsl:variable name="v_raming_gen_exc" select="sum(//data_row/RAMING)"/>
|
||||
<xsl:variable name="v_contract_gen_exc" select="sum(//data_row/GECONTRACTEERD)"/>
|
||||
<xsl:variable name="v_factuur_gen_exc" select="sum(//data_row/FIN_FACTUUR_TOTAAL)"/>
|
||||
|
||||
<xsl:variable name="v_raming_gen" select="$v_raming_gen_exc + $incl_btw * sum(//data_row[MLD_STATUSOPDR_OMS = 'Raming']/CONTRACT_BTW)"/>
|
||||
<xsl:variable name="v_contract_gen" select="$v_contract_gen_exc + $incl_btw * sum(//data_row[MLD_STATUSOPDR_OMS != 'Raming']/CONTRACT_BTW)"/>
|
||||
<xsl:variable name="v_factuur_gen" select="$v_factuur_gen_exc + $incl_btw * sum(//data_row/FIN_FACTUUR_TOTAAL_BTW)"/>
|
||||
|
||||
<xsl:call-template name="DISPLAY_LEEG_BLOK">
|
||||
<xsl:with-param name="p_border" select="'rand_uit'"/>
|
||||
<xsl:with-param name="p_width" select="3"/>
|
||||
@@ -2031,9 +2286,9 @@
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="tdtl tdb" colspan="3">Totaal generaal</td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number(sum(//data_row/RAMING), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number(sum(//data_row/GECONTRACTEERD), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb tdpr"><xsl:value-of select="format-number(sum(//data_row/FIN_FACTUUR_TOTAAL), '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_raming_gen, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb"><xsl:value-of select="format-number($v_contract_gen, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdb tdpr"><xsl:value-of select="format-number($v_factuur_gen, '#.##0,00', 'euro')"/></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
@@ -3192,6 +3447,7 @@
|
||||
|
||||
<xsl:template name="DISPLAY_CONTRACTEN_ACC">
|
||||
<xsl:param name="p_accountcode"/>
|
||||
<xsl:param name="p_incl_btw"/>
|
||||
|
||||
<xsl:for-each select="//data_row[generate-id(.)=generate-id(key('GROUPBY_ACCOUNT_LEV_CONTR',concat(ACCOUNTCODE, '|', PRS_LEVERANCIER_NR, '|', MLD_OPDR_ORDERNR))[1]) and ACCOUNTCODE = $p_accountcode]">
|
||||
<xsl:sort select="PRS_LEVERANCIER_NR"/>
|
||||
@@ -3203,6 +3459,14 @@
|
||||
|
||||
<xsl:if test="MLD_OPDR_MEERWERK=0">
|
||||
<xsl:for-each select="//data_row[ACCOUNTCODE=$p_accountcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]">
|
||||
<xsl:variable name="v_opdr_kosten_exc" select="MLD_OPDR_KOSTEN"/>
|
||||
<xsl:variable name="v_opdr_kosten_btw" select="MLD_OPDR_KOSTEN_BTW"/>
|
||||
<xsl:variable name="v_facturen_exc" select="FIN_FACTUUR_TOTAAL"/>
|
||||
<xsl:variable name="v_facturen_btw" select="FIN_FACTUUR_TOTAAL_BTW"/>
|
||||
|
||||
<xsl:variable name="v_opdr_kosten" select="$v_opdr_kosten_exc + $p_incl_btw * $v_opdr_kosten_btw"/>
|
||||
<xsl:variable name="v_facturen" select="$v_facturen_exc + $p_incl_btw * $v_facturen_btw"/>
|
||||
|
||||
<tr>
|
||||
<td class="tdtl"><xsl:value-of select="SCODE"/></td>
|
||||
<td class="tdtl"><xsl:value-of select="PRS_LEVERANCIER_NR"/></td>
|
||||
@@ -3210,9 +3474,11 @@
|
||||
<td class="tdte"><xsl:value-of select="MLD_OPDR_OMSCHRIJVING"/></td>
|
||||
<td class="tdtc"><xsl:value-of select="KENMERK"/></td>
|
||||
<td class="tdtd"><xsl:value-of select="PRINTDATUM"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(MLD_OPDR_KOSTEN, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number(MLD_OPDR_KOSTEN_BTW, '#.##0,00', 'euro')"/></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($v_opdr_kosten, '#.##0,00', 'euro')"/></td>
|
||||
<xsl:if test="$p_incl_btw = 0">
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_opdr_kosten_btw, '#.##0,00', 'euro')"/></td>
|
||||
</xsl:if>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_facturen, '#.##0,00', 'euro')"/></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
@@ -3221,8 +3487,11 @@
|
||||
<xsl:variable name="v_mmw_omschrijving" select="concat('* ', MLD_OPDR_OMSCHRIJVING)"/>
|
||||
<xsl:variable name="v_mmw_sum_kosten_exc" select="sum(//data_row[ACCOUNTCODE=$p_accountcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/MLD_OPDR_KOSTEN)"/>
|
||||
<xsl:variable name="v_mmw_sum_kosten_btw" select="sum(//data_row[ACCOUNTCODE=$p_accountcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/MLD_OPDR_KOSTEN_BTW)"/>
|
||||
<xsl:variable name="v_mmw_sum_factuur_tot" select="sum(//data_row[ACCOUNTCODE=$p_accountcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/FIN_FACTUUR_TOTAAL)"/>
|
||||
<xsl:variable name="v_mmw_sum_factuur_exc" select="sum(//data_row[ACCOUNTCODE=$p_accountcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/FIN_FACTUUR_TOTAAL)"/>
|
||||
<xsl:variable name="v_mmw_sum_factuur_btw" select="sum(//data_row[ACCOUNTCODE=$p_accountcode and PRS_LEVERANCIER_NR=$v_leverancier and MLD_OPDR_ORDERNR=$v_contract_nr]/FIN_FACTUUR_TOTAAL_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_mmw_sum_kosten" select="$v_mmw_sum_kosten_exc + $p_incl_btw * $v_mmw_sum_kosten_btw"/>
|
||||
<xsl:variable name="v_mmw_sum_factuur" select="$v_mmw_sum_factuur_exc + $p_incl_btw * $v_mmw_sum_factuur_btw"/>
|
||||
<tr>
|
||||
<td class="tdtl"><xsl:value-of select="SCODE"/></td>
|
||||
<td class="tdtl"><xsl:value-of select="PRS_LEVERANCIER_NR"/></td>
|
||||
@@ -3230,9 +3499,11 @@
|
||||
<td class="tdte"><xsl:value-of select="$v_mmw_omschrijving"/></td>
|
||||
<td class="tdtc"><xsl:value-of select="KENMERK"/></td>
|
||||
<td class="tdtd"><xsl:value-of select="PRINTDATUM"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mmw_sum_kosten_exc, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mmw_sum_kosten_btw, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mmw_sum_factuur_tot, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mmw_sum_kosten, '#.##0,00', 'euro')"/></td>
|
||||
<xsl:if test="$p_incl_btw = 0">
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mmw_sum_kosten_btw, '#.##0,00', 'euro')"/></td>
|
||||
</xsl:if>
|
||||
<td class="tdtr"><xsl:value-of select="format-number($v_mmw_sum_factuur, '#.##0,00', 'euro')"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
@@ -3240,18 +3511,25 @@
|
||||
|
||||
<xsl:template name="DISPLAY_CONTRACTEN_ACC_TOTAAL">
|
||||
<xsl:param name="p_accountcode"/>
|
||||
<xsl:param name="p_incl_btw"/>
|
||||
|
||||
<xsl:variable name="v_contract_exc" select="sum(//data_row[ACCOUNTCODE = $p_accountcode]/MLD_OPDR_KOSTEN)"/>
|
||||
<xsl:variable name="v_contract_btw" select="sum(//data_row[ACCOUNTCODE = $p_accountcode]/MLD_OPDR_KOSTEN_BTW)"/>
|
||||
<xsl:variable name="v_facturen_exc" select="sum(//data_row[ACCOUNTCODE = $p_accountcode]/FIN_FACTUUR_TOTAAL)"/>
|
||||
<xsl:variable name="v_facturen_btw" select="sum(//data_row[ACCOUNTCODE = $p_accountcode]/FIN_FACTUUR_TOTAAL_BTW)"/>
|
||||
|
||||
<xsl:variable name="v_contract" select="$v_contract_exc + $p_incl_btw * $v_contract_btw"/>
|
||||
<xsl:variable name="v_facturen" select="$v_facturen_exc + $p_incl_btw * $v_facturen_btw"/>
|
||||
|
||||
<tr><td colspan="9"> </td></tr>
|
||||
<tr>
|
||||
<td class="tdtl tdbi" colspan="3"><xsl:value-of select="ACCOUNTCODE"/></td>
|
||||
<td class="tdtl tdbi" colspan="3">Subtotaal</td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_contract_exc, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_contract_btw, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_facturen_exc, '#.##0,00', 'euro')"/></td>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_contract, '#.##0,00', 'euro')"/></td>
|
||||
<xsl:if test="$p_incl_btw = 0">
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_contract_btw, '#.##0,00', 'euro')"/></td>
|
||||
</xsl:if>
|
||||
<td class="tdtr tdbi"><xsl:value-of select="format-number($v_facturen, '#.##0,00', 'euro')"/></td>
|
||||
</tr>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user