|
|
|
|
@@ -622,13 +622,13 @@
|
|
|
|
|
<xsl:with-param name="p_Percent" select="'21'"/>
|
|
|
|
|
</xsl:call-template>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
<xsl:if test="count(//data_row[FIN_FACTUUR_KEY = $l_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '6']/FIN_FACTUURREGEL_BTW) != 0">
|
|
|
|
|
<!-- Subtotale voor BTW 6 Laag -->
|
|
|
|
|
<xsl:if test="count(//data_row[FIN_FACTUUR_KEY = $l_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '9']/FIN_FACTUURREGEL_BTW) != 0">
|
|
|
|
|
<!-- Subtotale voor BTW 9 Laag -->
|
|
|
|
|
<xsl:call-template name="REMS_UBL21_TaxSubtotal">
|
|
|
|
|
<xsl:with-param name="p_fin_factuur_key" select="$l_fin_factuur_key"/>
|
|
|
|
|
<xsl:with-param name="p_TaxableAmount"><xsl:call-template name="SUBTOTAL_LAAG"><xsl:with-param name="p_fin_factuur_key" select="FIN_FACTUUR_KEY"/></xsl:call-template></xsl:with-param>
|
|
|
|
|
<xsl:with-param name="p_TaxAmount"><xsl:call-template name="VAT_LOW"><xsl:with-param name="p_fin_factuur_key" select="FIN_FACTUUR_KEY"/><xsl:with-param name="p_formaat" select="'format_default'"/></xsl:call-template></xsl:with-param>
|
|
|
|
|
<xsl:with-param name="p_Percent" select="'6'"/>
|
|
|
|
|
<xsl:with-param name="p_Percent" select="'9'"/>
|
|
|
|
|
</xsl:call-template>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
<xsl:if test="count(//data_row[FIN_FACTUUR_KEY = $l_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '0']/FIN_FACTUURREGEL_BTW) != 0">
|
|
|
|
|
@@ -754,8 +754,10 @@
|
|
|
|
|
<xsl:param name="p_fin_btwtabelwaarde_btwcode"/>
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="$p_fin_btwtabelwaarde_btwcode = 'V21'">H</xsl:when>
|
|
|
|
|
<xsl:when test="$p_fin_btwtabelwaarde_btwcode = 'V9'">L</xsl:when>
|
|
|
|
|
<xsl:when test="$p_fin_btwtabelwaarde_btwcode = 'V6'">L</xsl:when>
|
|
|
|
|
<xsl:when test="$p_fin_btwtabelwaarde_btwcode = '0'">G</xsl:when>
|
|
|
|
|
<xsl:when test="$p_fin_btwtabelwaarde_btwcode = 'L9'">L</xsl:when>
|
|
|
|
|
<xsl:otherwise><xsl:value-of select="$p_fin_btwtabelwaarde_btwcode"/></xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
@@ -831,7 +833,7 @@
|
|
|
|
|
<xsl:otherwise>0.00</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:variable>
|
|
|
|
|
<xsl:value-of select="format-number(sum(//data_row[FIN_FACTUUR_KEY = $p_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '6']/FIN_FACTUURREGEL_BTW), $l_pattern, $p_formaat)"/>
|
|
|
|
|
<xsl:value-of select="format-number(sum(//data_row[FIN_FACTUUR_KEY = $p_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '9']/FIN_FACTUURREGEL_BTW), $l_pattern, $p_formaat)"/>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<!-- Subtotaal (som) van alle bedragen die betrekking hebben op BTW Hoog -->
|
|
|
|
|
@@ -848,12 +850,12 @@
|
|
|
|
|
<!-- Subtotaal (som) van alle bedragen die betrekking hebben op BTW Laag -->
|
|
|
|
|
<xsl:template name="SGGLAAG">
|
|
|
|
|
<xsl:param name="p_fin_factuur_key"/>
|
|
|
|
|
<xsl:value-of select="format-number(sum(//data_row[FIN_FACTUUR_KEY = $p_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '6']/FIN_FACTUURREGEL_TOTAAL), '0,00', 'format_xtractor')"/>
|
|
|
|
|
<xsl:value-of select="format-number(sum(//data_row[FIN_FACTUUR_KEY = $p_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '9']/FIN_FACTUURREGEL_TOTAAL), '0,00', 'format_xtractor')"/>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
<!-- Hetzelfde template als hierboven, maar dan in format 0.00 -->
|
|
|
|
|
<xsl:template name="SUBTOTAL_LAAG">
|
|
|
|
|
<xsl:param name="p_fin_factuur_key"/>
|
|
|
|
|
<xsl:value-of select="format-number(sum(//data_row[FIN_FACTUUR_KEY = $p_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '6']/FIN_FACTUURREGEL_TOTAAL), '0.00', 'format_default')"/>
|
|
|
|
|
<xsl:value-of select="format-number(sum(//data_row[FIN_FACTUUR_KEY = $p_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '9']/FIN_FACTUURREGEL_TOTAAL), '0.00', 'format_default')"/>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<!-- Subtotaal (som) van alle bedragen die betrekking hebben op BTW nul -->
|
|
|
|
|
@@ -887,7 +889,7 @@
|
|
|
|
|
|
|
|
|
|
<xsl:template name="SGGLAAG_INCL">
|
|
|
|
|
<xsl:param name="p_fin_factuur_key"/>
|
|
|
|
|
<xsl:value-of select="format-number(sum(//data_row[FIN_FACTUUR_KEY = $p_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '6']/FIN_FACTUURREGEL_TOTAAL) + sum(//data_row[FIN_FACTUUR_KEY = $p_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '6']/FIN_FACTUURREGEL_BTW), '0.00', 'format_default')"/>
|
|
|
|
|
<xsl:value-of select="format-number(sum(//data_row[FIN_FACTUUR_KEY = $p_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '9']/FIN_FACTUURREGEL_TOTAAL) + sum(//data_row[FIN_FACTUUR_KEY = $p_fin_factuur_key and FIN_FACTUURREGEL_BTW_PERC = '9']/FIN_FACTUURREGEL_BTW), '0.00', 'format_default')"/>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<xsl:template name="SGGONBEL_INCL">
|
|
|
|
|
|