VLKC#39844 Negatieve bedragen igv. creditfactuur niet positief maken

svn path=/Website/branches/v2016.3/; revision=33137
This commit is contained in:
Maarten van der Heide
2017-03-14 12:47:38 +00:00
parent 836eedad79
commit 1ece5c489b

View File

@@ -27,10 +27,11 @@
<xsl:variable name="kostprijs"> <xsl:variable name="kostprijs">
<xsl:choose> <xsl:choose>
<xsl:when test="Invoice/Fields/Field[@Name='NettoBedrag']!=''"> <xsl:when test="Invoice/Fields/Field[@Name='NettoBedrag']!=''">
<xsl:choose> <!--xsl:choose>
<xsl:when test="substring(Invoice/Fields/Field[@Name='Debet/Credit'],1,6)='Credit'"><xsl:value-of select="format-number(0 - number(Invoice/Fields/Field[@Name='NettoBedrag']), '0.00')"/></xsl:when> <xsl:when test="substring(Invoice/Fields/Field[@Name='Debet/Credit'],1,6)='Credit'"><xsl:value-of select="format-number(0 - number(Invoice/Fields/Field[@Name='NettoBedrag']), '0.00')"/></xsl:when>
<xsl:otherwise><xsl:value-of select="Invoice/Fields/Field[@Name='NettoBedrag']"/></xsl:otherwise> <xsl:otherwise><xsl:value-of select="Invoice/Fields/Field[@Name='NettoBedrag']"/></xsl:otherwise>
</xsl:choose> </xsl:choose-->
<xsl:value-of select="Invoice/Fields/Field[@Name='NettoBedrag']"/>
</xsl:when> </xsl:when>
<xsl:otherwise>0</xsl:otherwise> <xsl:otherwise>0</xsl:otherwise>
</xsl:choose> </xsl:choose>
@@ -41,10 +42,11 @@
<xsl:variable name="btwbedrag"> <xsl:variable name="btwbedrag">
<xsl:choose> <xsl:choose>
<xsl:when test="Invoice/Fields/Field[@Name='BTWBedrag']!=''"> <xsl:when test="Invoice/Fields/Field[@Name='BTWBedrag']!=''">
<xsl:choose> <!--xsl:choose>
<xsl:when test="substring(Invoice/Fields/Field[@Name='Debet/Credit'],1,6)='Credit'"><xsl:value-of select="format-number(0 - number(Invoice/Fields/Field[@Name='BTWBedrag']), '0.00')"/></xsl:when> <xsl:when test="substring(Invoice/Fields/Field[@Name='Debet/Credit'],1,6)='Credit'"><xsl:value-of select="format-number(0 - number(Invoice/Fields/Field[@Name='BTWBedrag']), '0.00')"/></xsl:when>
<xsl:otherwise><xsl:value-of select="Invoice/Fields/Field[@Name='BTWBedrag']"/></xsl:otherwise> <xsl:otherwise><xsl:value-of select="Invoice/Fields/Field[@Name='BTWBedrag']"/></xsl:otherwise>
</xsl:choose> </xsl:choose-->
<xsl:value-of select="Invoice/Fields/Field[@Name='BTWBedrag']"/>
</xsl:when> </xsl:when>
<xsl:otherwise>0</xsl:otherwise> <xsl:otherwise>0</xsl:otherwise>
</xsl:choose> </xsl:choose>