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.
83 lines
4.2 KiB
83 lines
4.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="pos_receipt_design2" model="pos.receipt">
|
|
<field name="name">Design 2</field>
|
|
<field name="design_receipt"><![CDATA[
|
|
<div class="pos-receipt" style="font-family: sans-serif; padding: 8px;">
|
|
|
|
<!-- HEADER -->
|
|
<div style="text-align:center; padding:10px 0; border-bottom:2px solid #000;">
|
|
<t t-if="env.services.pos.config.logo">
|
|
<img t-att-src="'data:image/png;base64,' + env.services.pos.config.logo"
|
|
style="max-width:120px; margin-bottom:5px;"/>
|
|
</t>
|
|
<div style="font-size:18px; font-weight:700; margin-top:6px;">
|
|
[[ company.name ]]
|
|
</div>
|
|
<div style="font-size:13px; margin-top:4px;">
|
|
<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>
|
|
|
|
<!-- ORDERLINES SECTION -->
|
|
<div style="margin-top:15px;">
|
|
<div style="font-weight:700; border-bottom:1px solid #000; padding-bottom:5px;">
|
|
Order Details
|
|
</div>
|
|
|
|
<table style="width:100%; border-collapse:collapse; margin-top:6px; font-size:14px;">
|
|
<tr style="border-bottom:1px dashed #555;">
|
|
<th style="text-align:left; padding:4px;">Product</th>
|
|
<th style="text-align:center; padding:4px;">Qty</th>
|
|
<th style="text-align:right; padding:4px;">Amount</th>
|
|
</tr>
|
|
|
|
<t t-if="props.orderlines and props.orderlines.length">
|
|
<tr t-foreach="props.orderlines" t-as="orderline" t-key="orderline_index"
|
|
style="border-bottom:1px dotted #ccc;">
|
|
<td style="padding:4px; width:60%; word-break:break-word;">
|
|
<t t-esc="orderline.productName"/>
|
|
</td>
|
|
<td style="padding:4px; text-align:center; width:20%;">
|
|
<t t-esc="orderline.qty"/>
|
|
</td>
|
|
<td style="padding:4px; text-align:right; width:20%;">
|
|
<t t-esc="orderline.price"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- TOTAL SECTION BOX -->
|
|
<div style="margin-top:18px; padding:10px; border:2px dashed #555; border-radius:6px;">
|
|
<div style="display:flex; justify-content:space-between; margin-bottom:8px;">
|
|
<span style="font-weight:600;">Subtotal</span>
|
|
<span class="placeholder-span">[[ receipt.total_without_tax ]]</span>
|
|
</div>
|
|
|
|
<div style="display:flex; justify-content:space-between; font-size:18px; font-weight:700;">
|
|
<span>Total</span>
|
|
<span class="placeholder-span">[[ receipt.amount_total ]]</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- RECEIPT INFO -->
|
|
<div style="text-align:center; margin-top:20px; font-size:14px;">
|
|
<div><t t-esc="props.receipt.name"/></div>
|
|
<div><t t-esc="props.receipt.date"/></div>
|
|
</div>
|
|
|
|
<!-- QR AREA -->
|
|
<div class="qrArea" style="display:flex; justify-content:center; margin:25px 0;"></div>
|
|
|
|
<!-- FOOTER -->
|
|
<div style="text-align:center; font-size:14px; margin-top:10px;">
|
|
Thank you for shopping with us!
|
|
</div>
|
|
</div>]]></field>
|
|
</record>
|
|
|
|
</odoo>
|
|
|