ORKESTRA

ORKESTRA

  orkestra orkestra.com.tr
  Sohbet   İndirme Merkezi

Tevkifat Sonrası Kalan KDV


   
        <tr class="alt_toplam_tr" ><td class="alt_toplam_cap">Tevkifat Sonrası Kalan KDV </td>
        <td class="alt_toplam_val">
<xsl:choose>
   <xsl:when test="//n1:Invoice/cbc:DocumentCurrencyCode != 'TRY' and //n1:Invoice/cbc:DocumentCurrencyCode != 'TRL'">
            <xsl:choose>
                <xsl:when test="sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxableAmount)-sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxAmount) &gt; 0">
                    <xsl:value-of select="format-number((sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxableAmount)-sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxAmount))*(//n1:Invoice/cac:PricingExchangeRate/cbc:CalculationRate), '###.##0,00', 'european')"/>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="format-number((sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxAmount)-sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxAmount))*(//n1:Invoice/cac:PricingExchangeRate/cbc:CalculationRate), '###.##0,00', 'european')"/>    
                </xsl:otherwise>
            </xsl:choose>            
            <xsl:call-template name="print_doviz" ><xsl:with-param name="d"  select="'TRY'" /></xsl:call-template>            
   </xsl:when>            
   <xsl:otherwise>
            <xsl:choose>
                <xsl:when test="sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxableAmount)-sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxAmount) &gt; 0">
                    <xsl:value-of select="format-number(sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxableAmount)-sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxAmount), '###.##0,00', 'european')"/>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="format-number(sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxAmount)-sum(//n1:Invoice/cac:InvoiceLine/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxAmount), '###.##0,00', 'european')"/>    
                </xsl:otherwise>
            </xsl:choose>            
            <xsl:call-template name="print_doviz" ><xsl:with-param name="d"  select="//n1:Invoice/cbc:DocumentCurrencyCode" /></xsl:call-template>   
   </xsl:otherwise>
</xsl:choose>            

        </td>
    </tr>