Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titlee-Fatura belgeleri için 2.kod bloku

<td width="40%" align="center" valign="middle"

                          <xsl:variable name="ettnValue">

                              <xsl:value-of select="n1:Invoice/cbc:UUID"/>

                          </xsl:variable>

                          <div id="qrcode_{string($ettnValue)}" style="width:140px;"/>

                          <div id="qrvalue_{string($ettnValue)}" 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                              <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 ettnValue=  "<xsl:value-of select="n1:Invoice/cbc:UUID"/>";

                              var qrcode = new QRCode(document.getElementById("qrcode_" + ettnValue), {

                              width : 140,

                              height : 140,

                              correctLevel: QRCode.CorrectLevel.L

                              });

                              var minifiedValues =document.getElementById("qrvalue_" + ettnValue).innerHTML.replace(/\s/g, '');

                              qrcode.makeCode(minifiedValues)

                          </script>                 </td>



Expand
titlee-Arşiv belgeleri için 2.kod bloku

<td width="40%" align="center" valign="middle" >                                   

<xsl:variable name="ettnValue">

<xsl:value-of select="n1:Invoice/cbc:UUID"/>

</xsl:variable>

<div id="qrcode_{string($ettnValue)}" style="width:140px;"/>

                                    <div id="qrvalue_{string($ettnValue)}" style="visibility: hidden;position:absolute;">

                                        {

                                        "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<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

var ettnValue=  "<xsl:value-of select="n1:Invoice/cbc:UUID"/>";

var qrcode = new QRCode(document.getElementById("qrcode_" + ettnValue), {

                                        width : 140,

                                        height height : 140,

                                        correctLevel: QRCode.CorrectLevel.L

                                        });

                                        var minifiedValues =  document.getElementById("qrvalue_"+ettnValue).innerHTML.replace(/\s/g, '') ;

                                        qrcode.makeCode(minifiedValues)

                                    </script>

                                </td>

Expand
titlee-İrsaliye belgeleri için 2.kod bloku

<td width="40%" align="center" valign="middle" >

                    <xsl:variable name="ettnValue">

                        <xsl:value-of select="n1:DespatchAdvice/cbc:UUID"/>

                    </xsl:variable>

                    <div id="qrcode_{string($ettnValue)}" style="width:140px;"/>

                    <div id="qrvalue_{string($ettnValue)}" style="visibility: hidden;position:absolute;">

                        {

                        "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="substring(n1:DespatchAdvice/cac:Shipment/cac:Delivery/cac:Despatch/cbc:ActualDespatchTime, 0,9)"/>",

                        "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 ettnValue=  "<xsl:value-of select="n1:DespatchAdvice/cbc:UUID"/>";

                        var qrcode = new QRCode(document.getElementById("qrcode_" + ettnValue), {

                        width : 140,

                        height : 140,

                        correctLevel: QRCode.CorrectLevel.L

                        });

                        var minifiedValues = document.getElementById("qrvalue_"+ ettnValue).innerHTML.replace(/\s/g, '');

                        qrcode.makeCode(minifiedValues)

                    </script>

                </td>

Expand
titlee-Müstahsil belgeleri için 2.kod bloku

<div id="qrcode_{string($ettnValue)}" style="width:140px;"/>

                                    <div id="qrvalue_{string($ettnValue)}" style="visibility: hidden;position:absolute;">

                                                                                {

                                        "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                                        <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 ettnValue=  "<xsl:value-of select="n1:CreditNote/cbc:UUID"/>";

                                        var qrcode = new QRCode(document.getElementById("qrcode_" + ettnValue), {

                                        width : 140,

                                        height : 140,

                                        correctLevel: QRCode.CorrectLevel.L

                                        });

                                        var                                         var minifiedValues = document.getElementById("qrvalue_" + ettnValue).innerHTML.replace(/\s/g, '');

                                        qrcode                                        qrcode.makeCode(minifiedValues)

                                    </script> 

...