Fatura tasarmınızda iade edilen faturaların bilgisini göstermek için aşağıdaki kod bloğunu XSLT tasarımınıza eklemelisiniz.
<xsl:if test="//n1:Invoice/cac:BillingReference/cac:InvoiceDocumentReference[cbc:DocumentTypeCode='İADE' or cbc:DocumentTypeCode='IADE']">
<div class="fatura_notlari">
<center>
<table id="lineTable" style="width: 100%; border-collapse: collapse; margin-top:10px;">
<thead>
<tr>
<td colspan="4" align="left" style="padding:0 0 10px 0;">
<span style="font-weight:bold; text-decoration: underline;">İadeye Konu Olan Faturalar</span>
</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="//n1:Invoice/cac:BillingReference/cac:InvoiceDocumentReference[cbc:DocumentTypeCode='İADE' or cbc:DocumentTypeCode='IADE']">
<xsl:if test="(position() mod 4) = 1">
<xsl:text disable-output-escaping="yes"><tr class="lineTableTr"></xsl:text>
</xsl:if>
<td class="lineTableTd" style="width: 25%; padding: 10px; border: 1px solid #efefef; vertical-align: top;">
<div>
<span style="font-weight:bold;">Fatura No: </span><xsl:value-of select="cbc:ID"/>
</div>
<div style="margin-top:5px;">
<span style="font-weight:bold;">Tarih: </span><xsl:apply-templates select="cbc:IssueDate"/>
</div>
</td>
<xsl:if test="(position() mod 4) = 0 or position() = last()">
<xsl:text disable-output-escaping="yes"></tr></xsl:text>
</xsl:if>
</xsl:for-each>
</tbody>
</table>
</center>
</div>
</xsl:if>
Kod bloğunun ekleneceği alan aşağıdaki gibidir.
Fatura görüntünüz bu şekilde olacaktır: