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,21 +119,16 @@ ...@@ -119,21 +119,16 @@
<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="pos-sale-ticket">
<div class="pos-center-align">
<img t-att-src="widget.pos.company_logo_base64"/><br />
</div>
<div class="einv-qr"> <div class="einv-qr">
<div t-attf-id="qrcode_container"> <div t-attf-id="qrcode_container">
<div id="qrcode"></div> <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>"; -->
<script type="text/javascript">
<!-- console.log('1-',qr_data);--> var qr_data ="<t t-esc="url_qrcode"/>";
var qrcode = new QRCode('qrcode' , { var qrcode = new QRCode('qrcode' , {
text: qr_data, text: qr_data,
...@@ -149,6 +144,15 @@ ...@@ -149,6 +144,15 @@
</script> </script>
</div> </div>
</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> </receipt>
</t> </t>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment