diff --git a/static/src/xml/pos.xml b/static/src/xml/pos.xml index 82ed0f87731c69c869f8a3c103b1a6d9f0b87fce..c755f16b295a2cd0dcf6b94980cf966f29bacbd5 100644 --- a/static/src/xml/pos.xml +++ b/static/src/xml/pos.xml @@ -119,35 +119,39 @@ <t t-name="XmlQR"> <receipt align='center' width='40' value-thousands-separator='' > - <div class="einv-qr"> - <div t-attf-id="qrcode_container"> - <div id="qrcode"></div> - <!--<script type="text/javascript"> new QRCode(document.getElementById("qrcode_id"), qr_data);</script>--> - <script type="text/javascript"> - <!-- var qr_data ="Seller : <t t-esc="receipt.company.name"/>; --> - var qr_data ="Seller : "; - <!-- Invoice_No : <t t-esc="receipt.name"/>; - Date : <t t-esc="receipt.date.localestring"/>; - Total_Vat : <t t-esc="widget.format_currency(receipt.total_tax)"/>; - Total_Amount_Due : <t t-esc="widget.format_currency(receipt.total_with_tax)"/>; - <t t-if="receipt.company.vat">Vat_No :<t t-esc="receipt.company.vat"/><t>ؘ</t></t>"; --> - - - <!-- console.log('1-',qr_data);--> - - var qrcode = new QRCode('qrcode' , { - text: qr_data, - width: 160, - height: 160, - colorDark : "#000000", - colorLight : "#ffffff", - correctLevel : QRCode.CorrectLevel.H - }); - qrcode.makeCode(qr_data); - - $("#qrcode > img").css({"margin":"20px auto"}); - </script> + <div class="pos-sale-ticket"> + <div class="pos-center-align"> + <img t-att-src="widget.pos.company_logo_base64"/><br /> + </div> + <div class="einv-qr"> + <div t-attf-id="qrcode_container"> + <div id="qrcode"></div> + + <script type="text/javascript"> + var qr_data ="<t t-esc="url_qrcode"/>"; + + var qrcode = new QRCode('qrcode' , { + text: qr_data, + width: 160, + height: 160, + colorDark : "#000000", + colorLight : "#ffffff", + correctLevel : QRCode.CorrectLevel.H + }); + qrcode.makeCode(qr_data); + + $("#qrcode > img").css({"margin":"20px auto"}); + </script> + </div> </div> + <table class='receipt-total'> + <tr> + <td><t t-esc="id_container"/></td> + <td class="pos-right-align"> + <t t-esc="weight"/> + </td> + </tr> + </table> </div> </receipt>