MDUX#36778: Factuurkenmerk voor import toevoegen
svn path=/Website/branches/v2016.1/; revision=29665
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<xsl:comment>leveranciernr;factuurnr;factuurdatum;opdrachtnr;omschrijving;bedrag;btwperc;document;navision_nr</xsl:comment>
|
||||
<xsl:for-each select="//factuur">
|
||||
<xsl:for-each select="factuurregel">
|
||||
;<xsl:value-of select="../nr"/>;<xsl:value-of select="../datum"/>;<xsl:value-of select="../opdrachtnr"/>;<xsl:call-template name="puntkomma"><xsl:with-param name="p_string" select="omschrijving"/></xsl:call-template>;<xsl:value-of select="prijs"/>;<xsl:apply-templates select="btwpercentage"/>;<xsl:value-of select="../bestand"/>;<xsl:value-of select="../navision_nr"/>; </xsl:for-each></xsl:for-each>
|
||||
;<xsl:value-of select="../nr"/>;<xsl:value-of select="../datum"/>;<xsl:value-of select="../opdrachtnr"/>;<xsl:call-template name="puntkomma"><xsl:with-param name="p_string" select="omschrijving"/></xsl:call-template>;<xsl:apply-templates select="prijs"><xsl:with-param name="p_navision_nr" select="../navision_nr"/></xsl:apply-templates>;<xsl:apply-templates select="btwpercentage"/>;<xsl:value-of select="../bestand"/>;<xsl:value-of select="../navision_nr"/>; </xsl:for-each></xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="puntkomma">
|
||||
@@ -15,4 +15,13 @@
|
||||
<xsl:value-of select="translate($p_string,';',':')"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="prijs">
|
||||
<!-- MDUX36778. Negatief maken van de prijs in geval van credit factuur -->
|
||||
<xsl:param name="p_navision_nr"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="substring(normalize-space($p_navision_nr),1,2) = 'IC'">-<xsl:value-of select="."/></xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
Reference in New Issue
Block a user