You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

105 lines
4.9 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="pos_receipt_design1" model="pos.receipt">
<field name="name">Design 1</field>
<field name="design_receipt"><![CDATA[
<div class="pos-receipt">
<div style = "border-radius: inherit;">
<div style="text-align:center;">
<t t-if="env.services.pos.config.logo">
<img t-att-src="'data:image/png;base64,' + env.services.pos.config.logo"
class="pos-receipt-logo"/>
<br />
</t>
</div>
<div class="pos-receipt-contact">
<div style="text-align:center; font-size:13px; height: 90px;">
<div>
Name :
<span class="placeholder-span">[[ company.name ]]</span>
</div>
<div>
Phone :
<span class="placeholder-span">[[ company.phone ]]</span>
</div>
<div>
Email :
<span class="placeholder-span">[[ company.email ]]</span>
</div>
<div>
Website :
<span class="placeholder-span">[[ company.website ]]</span>
</div>
</div>
</div>
<br/><br/><br/>
</div>
<div class="drop-area">
</div>
<!-- Table -->
<div>
<table class="receipt-orderlines"
style="width:100%; border-collapse:collapse; font-size:15px; margin-top:10px;">
<tr style="border-bottom:1px dashed black;">
<th style="text-align:left; padding:4px; width:60%;">Product</th>
<th style="text-align:left; padding:4px; width:20%;">Qty</th>
<th style="text-align:left; padding:4px; width:20%;">Amount</th>
</tr>
<t t-if="props.orderlines and props.orderlines.length">
<tr t-foreach="props.orderlines" t-as="orderline" t-key="orderline_index">
<td style="padding:4px; text-align:left; word-break:break-word;">
<t t-esc="orderline.productName"/>
<t t-if="!orderline">
<div style="font-size:12px; font-style:italic; color:#808080;">
<span>orderline.name</span>
</div>
</t>
</td>
<td style="padding:4px; text-align:left; font-size:14px;">
<t t-esc="orderline.qty"/>
<t t-if="!orderline">
<div style="font-size:12px; font-style:italic; color:#808080;">
orderline.qty
</div>
</t>
</td>
<td style="padding:4px; text-align:left; font-size:14px;">
<t t-esc="orderline.price"/>
<t t-if="!orderline">
<div style="font-size:12px; font-style:italic; color:#808080;">
orderline.price
</div>
</t>
</td>
</tr>
</t>
</table>
</div>
<br/>
<br/>
<!-- Totals Section -->
<div id="subtotalDiv" class="selectable-box"
style="font-weight:700; justify-content:center;">
Subtotal :
<span class="placeholder-span">[[ receipt.total_without_tax ]]</span>
</div>
<br/>
<div id="totalDiv" class="selectable-box"
style="font-weight:700; justify-content:center;">
TOTAL :
<span class="placeholder-span">[[ receipt.amount_total ]]</span>
</div>
<div class='before-footer' />
<br/><br/>
<!-- Footer -->
</div>
<br/><br/>
<div class="qrArea" style="justify-content:center; display:flex; margin-bottom:3rem;"></div>
<div style="font-size:14px; text-align:center;">
Thank You... Please Visit Again ...
</div>
</div>]]></field>
</record>
</odoo>