MARX#40109: 400 - Bad Request - Price zonder 0 voor decimaalteken
svn path=/Website/branches/v2017.1/; revision=34577
This commit is contained in:
@@ -262,7 +262,7 @@
|
||||
<xsl:param name="p_taxperc"/>
|
||||
<xsl:if test="$p_price != ''">
|
||||
<PriceInformation>
|
||||
<Price><xsl:value-of select="$p_price"/></Price>
|
||||
<Price><xsl:call-template name="xsd_decimal"><xsl:with-param name="p_decimal" select="$p_price"/></xsl:call-template></Price>
|
||||
</PriceInformation>
|
||||
</xsl:if>
|
||||
<VATInformation>
|
||||
|
||||
@@ -267,7 +267,7 @@
|
||||
<xsl:param name="p_taxperc"/>
|
||||
<xsl:if test="$p_price != ''">
|
||||
<PriceInformation>
|
||||
<Price><xsl:value-of select="$p_price"/></Price>
|
||||
<Price><xsl:call-template name="xsd_decimal"><xsl:with-param name="p_decimal" select="$p_price"/></xsl:call-template></Price>
|
||||
</PriceInformation>
|
||||
</xsl:if>
|
||||
<VATInformation>
|
||||
|
||||
@@ -255,7 +255,7 @@
|
||||
<xsl:param name="p_taxperc"/>
|
||||
<xsl:if test="$p_price != ''">
|
||||
<PriceInformation>
|
||||
<Price><xsl:value-of select="$p_price"/></Price>
|
||||
<Price><xsl:call-template name="xsd_decimal"><xsl:with-param name="p_decimal" select="$p_price"/></xsl:call-template></Price>
|
||||
</PriceInformation>
|
||||
</xsl:if>
|
||||
<VATInformation>
|
||||
|
||||
@@ -258,7 +258,7 @@
|
||||
<xsl:param name="p_taxperc"/>
|
||||
<xsl:if test="$p_price != ''">
|
||||
<PriceInformation>
|
||||
<Price><xsl:value-of select="$p_price"/></Price>
|
||||
<Price><xsl:call-template name="xsd_decimal"><xsl:with-param name="p_decimal" select="$p_price"/></xsl:call-template></Price>
|
||||
</PriceInformation>
|
||||
</xsl:if>
|
||||
<VATInformation>
|
||||
|
||||
@@ -259,7 +259,7 @@
|
||||
<xsl:param name="p_taxperc"/>
|
||||
<xsl:if test="$p_price != ''">
|
||||
<PriceInformation>
|
||||
<Price><xsl:value-of select="$p_price"/></Price>
|
||||
<Price><xsl:call-template name="xsd_decimal"><xsl:with-param name="p_decimal" select="$p_price"/></xsl:call-template></Price>
|
||||
<PriceBase>
|
||||
<NumberOfUnitsInPriceBasis></NumberOfUnitsInPriceBasis>
|
||||
<MeasureUnitPriceBasis></MeasureUnitPriceBasis>
|
||||
|
||||
@@ -267,7 +267,7 @@
|
||||
<xsl:param name="p_taxperc"/>
|
||||
<xsl:if test="$p_price != ''">
|
||||
<PriceInformation>
|
||||
<Price><xsl:value-of select="$p_price"/></Price>
|
||||
<Price><xsl:call-template name="xsd_decimal"><xsl:with-param name="p_decimal" select="$p_price"/></xsl:call-template></Price>
|
||||
<PriceBase>
|
||||
<NumberOfUnitsInPriceBasis></NumberOfUnitsInPriceBasis>
|
||||
<MeasureUnitPriceBasis></MeasureUnitPriceBasis>
|
||||
|
||||
@@ -267,7 +267,7 @@
|
||||
<xsl:param name="p_taxperc"/>
|
||||
<xsl:if test="$p_price != ''">
|
||||
<PriceInformation>
|
||||
<Price><xsl:value-of select="$p_price"/></Price>
|
||||
<Price><xsl:call-template name="xsd_decimal"><xsl:with-param name="p_decimal" select="$p_price"/></xsl:call-template></Price>
|
||||
<PriceBase>
|
||||
<NumberOfUnitsInPriceBasis></NumberOfUnitsInPriceBasis>
|
||||
<MeasureUnitPriceBasis></MeasureUnitPriceBasis>
|
||||
|
||||
@@ -267,7 +267,7 @@
|
||||
<xsl:param name="p_taxperc"/>
|
||||
<xsl:if test="$p_price != ''">
|
||||
<PriceInformation>
|
||||
<Price><xsl:value-of select="$p_price"/></Price>
|
||||
<Price><xsl:call-template name="xsd_decimal"><xsl:with-param name="p_decimal" select="$p_price"/></xsl:call-template></Price>
|
||||
<PriceBase>
|
||||
<NumberOfUnitsInPriceBasis></NumberOfUnitsInPriceBasis>
|
||||
<MeasureUnitPriceBasis></MeasureUnitPriceBasis>
|
||||
|
||||
@@ -13,6 +13,17 @@
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="xsd_decimal">
|
||||
<xsl:param name="p_decimal"/>
|
||||
<!-- MARX#40109: Een decimaal getal uit Facilitor XML voldoet niet perse / gegarandeerd aan het xsd:decimal format -->
|
||||
<!-- Als getal begint met een . (decimale punt), dan ontbreekt volgens de officiele regel kennelijk de voorloopnul -->
|
||||
<!-- Deze zetten we er dan maar bij -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="substring($p_decimal,1,1) = '.'">0<xsl:value-of select="$p_decimal"/></xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="$p_decimal"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Vertaal tabel -->
|
||||
<!-- Zie MARX#38436: Als er geen eenheidscode vanuit AX wordt meegestuurd (wat wel de bedoeling is), dan zelf maar heel goed de best doen maar er wat van te maken en niet altijd PCE mee te sturen-->
|
||||
<xsl:template name="SidB_translate_eenheidscode">
|
||||
|
||||
Reference in New Issue
Block a user