Skip to content
Snippets Groups Projects
Commit 2b455ee1 authored by Juliana's avatar Juliana
Browse files

Change XML ticket

parent f928b169
No related branches found
No related tags found
No related merge requests found
...@@ -119,35 +119,39 @@ ...@@ -119,35 +119,39 @@
<t t-name="XmlQR"> <t t-name="XmlQR">
<receipt align='center' width='40' value-thousands-separator='' > <receipt align='center' width='40' value-thousands-separator='' >
<div class="einv-qr"> <div class="pos-sale-ticket">
<div t-attf-id="qrcode_container"> <div class="pos-center-align">
<div id="qrcode"></div> <img t-att-src="widget.pos.company_logo_base64"/><br />
<!--<script type="text/javascript"> new QRCode(document.getElementById("qrcode_id"), qr_data);</script>--> </div>
<script type="text/javascript"> <div class="einv-qr">
<!-- var qr_data ="Seller : <t t-esc="receipt.company.name"/>; --> <div t-attf-id="qrcode_container">
var qr_data ="Seller : "; <div id="qrcode"></div>
<!-- Invoice_No : <t t-esc="receipt.name"/>;
Date : <t t-esc="receipt.date.localestring"/>; <script type="text/javascript">
Total_Vat : <t t-esc="widget.format_currency(receipt.total_tax)"/>; var qr_data ="<t t-esc="url_qrcode"/>";
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>"; --> var qrcode = new QRCode('qrcode' , {
text: qr_data,
width: 160,
<!-- console.log('1-',qr_data);--> height: 160,
colorDark : "#000000",
var qrcode = new QRCode('qrcode' , { colorLight : "#ffffff",
text: qr_data, correctLevel : QRCode.CorrectLevel.H
width: 160, });
height: 160, qrcode.makeCode(qr_data);
colorDark : "#000000",
colorLight : "#ffffff", $("#qrcode > img").css({"margin":"20px auto"});
correctLevel : QRCode.CorrectLevel.H </script>
}); </div>
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> </div>
</receipt> </receipt>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment