Dosya içerisinde bulunan Karekod ile başlayan açıklamalar arasında bulunan kod parçacıklarını kendi
tasarımlarınıza kopyalamanız gerekmektedir.
Karekod içeren örnek görsel tasarımları indirmek için tıklayınız.
1. <head> alanı içerisine <script type="text/javascript"> ile başlayan </script> ile biten kod
parçacığını kopyalayıp kendi tasarımınızda head kod blokları arasına ekleyeniz.
Kopyalanacak kod blok görseli:
2. Tasarımı yapılan belgenin GİB logosunun bulunduğu kod parçacığının td alanının bitiminden
başlayan <td> </td> kod bloklarını kopyalayarak kendi tasarımınızda aynı kod blokları
arasına ekleyiniz.
Kopyalanacak kod blok görseli:
Kopyalanacak kod e-Fatura:
<td width='40%' valign='top' align='right'>
<div id="qrcode"/>
<div id="qrvalue" style="vissibility: hidden; height: 30px;width: 30px; display:none">
{
"vkntckn":"<xsl:value-of select="n1:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"avkntckn":"<xsl:value-of select="n1:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"senaryo":"<xsl:value-of select="n1:Invoice/cbc:ProfileID"/>",
"tip":"<xsl:value-of select="n1:Invoice/cbc:InvoiceTypeCode"/>",
"tarih":"<xsl:value-of select="n1:Invoice/cbc:IssueDate"/>",
"no":"<xsl:value-of select="n1:Invoice/cbc:ID"/>",
"ettn":"<xsl:value-of select="n1:Invoice/cbc:UUID"/>",
"parabirimi":"<xsl:value-of select="n1:Invoice/cbc:DocumentCurrencyCode"/>",
"malhizmettoplam":"<xsl:value-of select="n1:Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount"/>",
<xsl:for-each select="n1:Invoice/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = '0015']">
<xsl:text>"kdvmatrah</xsl:text>(<xsl:value-of select="cbc:Percent"/>)":"<xsl:value-of select="cbc:TaxableAmount"/>",
</xsl:for-each>
<xsl:for-each select="n1:Invoice/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = '0015']">
<xsl:text>"hesaplanankdv</xsl:text>(<xsl:value-of select="cbc:Percent"/>)":"<xsl:value-of select="cbc:TaxAmount"/>",
</xsl:for-each>
"vergidahil":"<xsl:value-of select="n1:Invoice/cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount"/>",
"odenecek":"<xsl:value-of select="n1:Invoice/cac:LegalMonetaryTotal/cbc:PayableAmount"/>"
}
</div>
<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
width : 220,
height : 220,
correctLevel: QRCode.CorrectLevel.L,
});
var minifiedValues = JSON.stringify(JSON.parse(document.getElementById("qrvalue").innerHTML));
qrcode.makeCode(minifiedValues)
</script>
</td>
Kopyalanacak kod e-Arşiv:
<td width='40%' valign='top' align='right'>
<div id="qrcode"/>
<div id="qrvalue" style="vissibility: hidden; height: 30px;width: 30px; display:none">
{
"vkntckn":"<xsl:value-of select="n1:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"avkntckn":"<xsl:value-of select="n1:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"senaryo":"<xsl:value-of select="n1:Invoice/cbc:ProfileID"/>",
"tip":"<xsl:value-of select="n1:Invoice/cbc:InvoiceTypeCode"/>",
"tarih":"<xsl:value-of select="n1:Invoice/cbc:IssueDate"/>",
"no":"<xsl:value-of select="n1:Invoice/cbc:ID"/>",
"ettn":"<xsl:value-of select="n1:Invoice/cbc:UUID"/>",
"parabirimi":"<xsl:value-of select="n1:Invoice/cbc:DocumentCurrencyCode"/>",
"malhizmettoplam":"<xsl:value-of select="n1:Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount"/>",
<xsl:for-each select="n1:Invoice/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = '0015']">
<xsl:text>"kdvmatrah</xsl:text>(<xsl:value-of select="cbc:Percent"/>)":"<xsl:value-of select="cbc:TaxableAmount"/>",
</xsl:for-each>
<xsl:for-each select="n1:Invoice/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = '0015']">
<xsl:text>"hesaplanankdv</xsl:text>(<xsl:value-of select="cbc:Percent"/>)":"<xsl:value-of select="cbc:TaxAmount"/>",
</xsl:for-each>
"vergidahil":"<xsl:value-of select="n1:Invoice/cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount"/>",
"odenecek":"<xsl:value-of select="n1:Invoice/cac:LegalMonetaryTotal/cbc:PayableAmount"/>"
}
</div>
<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
width : 220,
height : 220,
correctLevel: QRCode.CorrectLevel.L,
});
var minifiedValues = JSON.stringify(JSON.parse(document.getElementById("qrvalue").innerHTML));
qrcode.makeCode(minifiedValues)
</script>
</td>
Kopyalanacak kod e-İrsaliye:
<td width='40%' valign='top' align='right'>
<div id="qrcode"/>
<div id="qrvalue" style="vissibility: hidden; height: 30px;width: 30px; display:none">
{
"vkntckn":"<xsl:value-of select="n1:DespatchAdvice/cac:DespatchSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"avkntckn":"<xsl:value-of select="n1:DespatchAdvice/cac:DeliveryCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"senaryo":"<xsl:value-of select="n1:DespatchAdvice/cbc:ProfileID"/>",
"tip":"<xsl:value-of select="n1:DespatchAdvice/cbc:DespatchAdviceTypeCode"/>",
"tarih":"<xsl:value-of select="n1:DespatchAdvice/cbc:IssueDate"/>",
"no":"<xsl:value-of select="n1:DespatchAdvice/cbc:ID"/>",
"ettn":"<xsl:value-of select="n1:DespatchAdvice/cbc:UUID"/>",
"sevktarihi":"<xsl:value-of select="n1:DespatchAdvice/cac:Shipment/cac:Delivery/cac:Despatch/cbc:ActualDespatchDate"/>",
"sevkzamani":"<xsl:value-of select="n1:DespatchAdvice/cac:Shipment/cac:Delivery/cac:Despatch/cbc:ActualDespatchTime"/>",
"tasiyicivkn":"<xsl:value-of select="n1:DespatchAdvice/cac:Shipment/cac:Delivery/cac:CarrierParty/cac:PartyIdentification/cbc:ID"/>",
"plaka":"<xsl:value-of select="n1:DespatchAdvice/cac:Shipment/cac:ShipmentStage/cac:TransportMeans/cac:RoadTransport/cbc:LicensePlateID"/>"
}
</div>
<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
width : 220,
height : 220,
correctLevel: QRCode.CorrectLevel.L,
});
var minifiedValues = JSON.stringify(JSON.parse(document.getElementById("qrvalue").innerHTML));
qrcode.makeCode(minifiedValues)
</script>
</td>
Kopyalanacak kod e-MM:
<td width='40%' valign='top' align='right'>
<div id="qrcode"/>
<div id="qrvalue" style="vissibility: hidden; height: 30px;width: 30px; display:none">
{
"vkntckn":"<xsl:value-of select="n1:CreditNote/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"avkntckn":"<xsl:value-of select="n1:CreditNote/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"senaryo":"<xsl:value-of select="n1:CreditNote/cbc:ProfileID"/>",
"tip":"MUHTAHSILMAKBUZU",
"tarih":"<xsl:value-of select="n1:CreditNote/cbc:IssueDate"/>",
"no":"<xsl:value-of select="n1:CreditNote/cbc:ID"/>",
"ettn":"<xsl:value-of select="n1:CreditNote/cbc:UUID"/>",
"parabirimi":"<xsl:value-of select="n1:CreditNote/cbc:DocumentCurrencyCode"/>",
"malhizmettoplam":"<xsl:value-of select="n1:CreditNote/cac:LegalMonetaryTotal/cbc:LineExtensionAmount"/>",
<xsl:for-each select="n1:CreditNote/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = '0003']">
"gvstopaj":"<xsl:value-of select="cbc:TaxAmount"/>",
</xsl:for-each>
<xsl:for-each select="n1:CreditNote/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = '9040']">
"merafonu":"<xsl:value-of select="cbc:TaxAmount"/>",
</xsl:for-each>
<xsl:for-each select="n1:CreditNote/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = '8001']">
"borsatescilucreti":"<xsl:value-of select="cbc:TaxAmount"/>",
</xsl:for-each>
<xsl:for-each select="n1:CreditNote/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = 'SGK_PRIM']">
"sgkprimkesintisi":"<xsl:value-of select="cbc:TaxAmount"/>",
</xsl:for-each>
"odenecek":"<xsl:value-of select="n1:CreditNote/cac:LegalMonetaryTotal/cbc:PayableAmount"/>"
}
</div>
<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
width : 220,
height : 220,
correctLevel: QRCode.CorrectLevel.L,
});
var minifiedValues = JSON.stringify(JSON.parse(document.getElementById("qrvalue").innerHTML));
qrcode.makeCode(minifiedValues)
</script>
</td>
Kopyalanacak kod e-SMM:
<td width='40%' valign='top' align='right'>
<div id="qrcode"/>
<div id="qrvalue" style="vissibility: hidden; height: 30px;width: 30px; display:none">
{
"vkntckn":"<xsl:value-of select="n1:CreditNote/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"avkntckn":"<xsl:value-of select="n1:CreditNote/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"tarih":"<xsl:value-of select="n1:CreditNote/cbc:IssueDate"/>",
"no":"<xsl:value-of select="n1:CreditNote/cbc:ID"/>",
"ettn":"<xsl:value-of select="n1:CreditNote/cbc:UUID"/>",
"parabirimi":"<xsl:value-of select="n1:CreditNote/cbc:DocumentCurrencyCode"/>",
"brutucret":"<xsl:value-of select="n1:CreditNote/cac:LegalMonetaryTotal/cbc:LineExtensionAmount"/>",
<xsl:choose>
<xsl:when test="$KDVTevkifatExists != ''">
"tahsilkdv":"<xsl:value-of select="$TahsilEdilenKDV"/>",
</xsl:when>
<xsl:otherwise>
"tahsilkdv":"<xsl:value-of select="$KDVSum"/>",
</xsl:otherwise>
</xsl:choose>
<xsl:for-each select="n1:CreditNote/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = '9015']">
"kdvtevkifat":"<xsl:value-of select="cbc:TaxAmount"/>",
</xsl:for-each>
<xsl:for-each select="n1:CreditNote/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = '0003']">
"gvstopaj":"<xsl:value-of select="cbc:TaxAmount"/>",
</xsl:for-each>
<xsl:for-each select="n1:CreditNote/cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode = '0015']">
"kdvtutari":"<xsl:value-of select="cbc:TaxAmount"/>",
</xsl:for-each>
"netucret":"<xsl:value-of select="n1:CreditNote/cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount"/>",
"tahsilat":"<xsl:value-of select="n1:CreditNote/cac:LegalMonetaryTotal/cbc:PayableAmount"/>"
}
</div>
<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
width : 220,
height : 220,
correctLevel: QRCode.CorrectLevel.L,
});
var minifiedValues = JSON.stringify(JSON.parse(document.getElementById("qrvalue").innerHTML));
qrcode.makeCode(minifiedValues)
</script>
</td>
Kopyalanacak kod e-Adisyon:
<td width='40%' valign='top' align='right'>
<div id="qrcode"/>
<div id="qrvalue" style="vissibility: hidden; height: 30px;width: 30px; display:none">
{
"vkntckn":"<xsl:value-of select="n1:CreditNote/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"avkntckn":"<xsl:value-of select="n1:CreditNote/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = 'TCKN' or @schemeID = 'VKN']"/>",
"senaryo":"<xsl:value-of select="n1:CreditNote/cbc:ProfileID"/>",
"tip":"<xsl:value-of select="n1:CreditNote/cbc:CreditNoteTypeCode"/>",
"tarih":"<xsl:value-of select="n1:CreditNote/cbc:IssueDate"/>",
"no":"<xsl:value-of select="n1:CreditNote/cbc:ID"/>",
"ettn":"<xsl:value-of select="n1:CreditNote/cbc:UUID"/>",
"odenecek(<xsl:value-of select="n1:CreditNote/cbc:DocumentCurrencyCode"/>)":"<xsl:value-of select="n1:CreditNote/cac:LegalMonetaryTotal/cbc:PayableAmount"/>"
}
</div>
<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
width : 220,
height : 220,
correctLevel: QRCode.CorrectLevel.L,
});
var minifiedValues = JSON.stringify(JSON.parse(document.getElementById("qrvalue").innerHTML));
qrcode.makeCode(minifiedValues)
</script>
</td>