TWYN#52776 Overzicht contracten en verwerking meer en minderwerken

svn path=/Website/branches/v2017.3/; revision=37913
This commit is contained in:
Erik Groener
2018-05-16 10:42:05 +00:00
parent d01532fedd
commit cb03a44331

View File

@@ -1178,8 +1178,8 @@
</xsl:call-template>
<!-- Totaal contractwaarde per accountcode -->
<xsl:variable name="v_gecontracteerd_exc" select="sum(//data_row[ACCOUNTCODE=$v_accountcode]/MLD_OPDR_KOSTEN)"/>
<xsl:variable name="v_gecontracteerd_btw" select="sum(//data_row[ACCOUNTCODE=$v_accountcode]/MLD_OPDR_KOSTEN_BTW)"/>
<xsl:variable name="v_gecontracteerd_exc" select="sum(//data_row[ACCOUNTCODE=$v_accountcode and CONTRACTWAARDE=1]/MLD_OPDR_KOSTEN)"/>
<xsl:variable name="v_gecontracteerd_btw" select="sum(//data_row[ACCOUNTCODE=$v_accountcode and CONTRACTWAARDE=1]/MLD_OPDR_KOSTEN_BTW)"/>
<xsl:variable name="v_gecontracteerd_inc" select="$v_gecontracteerd_exc + $v_gecontracteerd_btw"/>
<tr class="subt2">
<td colspan="5"></td>
@@ -1207,8 +1207,8 @@
<xsl:with-param name="p_hight" select="2"/>
</xsl:call-template>
<xsl:variable name="v_contract_exc" select="sum(//data_row/MLD_OPDR_KOSTEN)"/>
<xsl:variable name="v_contract_btw" select="sum(//data_row/MLD_OPDR_KOSTEN_BTW)"/>
<xsl:variable name="v_contract_exc" select="sum(//data_row[CONTRACTWAARDE=1]/MLD_OPDR_KOSTEN)"/>
<xsl:variable name="v_contract_btw" select="sum(//data_row[CONTRACTWAARDE=1]/MLD_OPDR_KOSTEN_BTW)"/>
<xsl:variable name="v_contract_inc" select="$v_contract_exc + $v_contract_btw"/>
<xsl:variable name="v_factuur_exc" select="sum(//data_row/FIN_FACTUUR_TOTAAL)"/>
@@ -3007,8 +3007,8 @@
<xsl:template name="DISPLAY_FACTUREN_ACC_TOTAAL">
<xsl:param name="p_accountcode"/>
<xsl:variable name="v_gecontracteerd_exc" select="sum(//data_row[ACCOUNTCODE=$p_accountcode]/MLD_OPDR_KOSTEN)"/>
<xsl:variable name="v_gecontracteerd_btw" select="sum(//data_row[ACCOUNTCODE=$p_accountcode]/MLD_OPDR_KOSTEN_BTW)"/>
<xsl:variable name="v_gecontracteerd_exc" select="sum(//data_row[ACCOUNTCODE=$p_accountcode and CONTRACTWAARDE=1]/MLD_OPDR_KOSTEN)"/>
<xsl:variable name="v_gecontracteerd_btw" select="sum(//data_row[ACCOUNTCODE=$p_accountcode and CONTRACTWAARDE=1]/MLD_OPDR_KOSTEN_BTW)"/>
<xsl:variable name="v_gecontracteerd_inc" select="$v_gecontracteerd_exc + $v_gecontracteerd_btw"/>
<xsl:variable name="v_factuur_exc"><xsl:value-of select="sum(//data_row[ACCOUNTCODE = $p_accountcode]/FIN_FACTUUR_TOTAAL)"/></xsl:variable>