ORKESTRA

ORKESTRA

  orkestra orkestra.com.tr
  Sohbet   İndirme Merkezi

İndirim Oranlarının Tam Sayı Yerine Ondalıklı (Virgüllü) Gösterilebilmesi İçin Tasarımdaki İlgili Alanın Güncellenmesi


<xsl:for-each select="./cac:AllowanceCharge">
<xsl:choose>
<xsl:when test="./cbc:ChargeIndicator and ./cbc:ChargeIndicator='true'">
</xsl:when>
<xsl:when test="./cbc:MultiplierFactorNumeric">
<span class="indirim_orani">
<xsl:text>%&#160;</xsl:text>
<xsl:value-of select="format-number(./cbc:MultiplierFactorNumeric*100, '0,00', 'european')" />
</span>
&#160;
<span class="indirim_tutari">
<xsl:call-template name="para">
<xsl:with-param name="p" select="./cbc:Amount" />
</xsl:call-template>
</span>
&#160;
</xsl:when>
<xsl:otherwise>
<xsl:if test="./cbc:Amount and ./cbc:Amount > 0 and ../cbc:LineExtensionAmount >= 0 ">
<span class="indirim_orani">
<xsl:text> %&#160;</xsl:text>
<xsl:variable name="matrah">
<xsl:call-template name="myisktoplam">
<xsl:with-param name="isk" select="../cac:AllowanceCharge" />
<xsl:with-param name="pos" select="position()-1" />
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="format-number( (./cbc:Amount div (../cbc:LineExtensionAmount + $toplamindirim - $matrah )) * 100, '0,00', 'european')" />
</span>
&#160;
<span class="indirim_tutari">
<xsl:call-template name="para">
<xsl:with-param name="p" select="./cbc:Amount" />
</xsl:call-template>
</span>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>