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.
97 lines
4.9 KiB
97 lines
4.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="pos_receipt_design3" model="pos.receipt">
|
|
<field name="name">Design 3</field>
|
|
<field name="design_receipt"><![CDATA[
|
|
<div class="pos-receipt" style="font-family:'Segoe UI',sans-serif; padding:20px; line-height:1.5; max-width:320px; margin:0 auto;">
|
|
|
|
<!-- HEADER -->
|
|
<div style="text-align:center; padding-bottom:16px; 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:10px; opacity:0.95;"/>
|
|
</t>
|
|
|
|
<div class="placeholder-span" style="font-size:20px; font-weight:700; letter-spacing:1px; margin-top:8px;">
|
|
[[ company.name ]]
|
|
</div>
|
|
|
|
|
|
<div class="placeholder-span" style="font-size:11px; line-height:1.6; opacity:0.85;">
|
|
[[ company.phone ]]
|
|
</div>
|
|
<div class="placeholder-span" style="font-size:11px; line-height:1.6; opacity:0.85;">
|
|
[[ company.email ]]
|
|
</div>
|
|
<div class="placeholder-span" style="font-size:11px; line-height:1.6; opacity:0.85;">
|
|
[[ company.website ]]
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ORDERLINES SECTION -->
|
|
<div style="margin-top:20px;">
|
|
<div style="font-weight:600; font-size:13px; letter-spacing:0.5px; margin-bottom:12px; text-transform:uppercase; opacity:0.8;">
|
|
Order Details
|
|
</div>
|
|
|
|
<table style="width:100%; border-collapse:collapse; font-size:13px;">
|
|
<thead>
|
|
<tr style="border-bottom:1px solid #000;">
|
|
<th style="text-align:left; padding:8px 4px; font-weight:600; font-size:12px;">Item</th>
|
|
<th style="text-align:center; padding:8px 4px; font-weight:600; font-size:12px;">Qty</th>
|
|
<th style="text-align:right; padding:8px 4px; font-weight:600; font-size:12px;">Price</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<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 dashed #ccc;">
|
|
|
|
<td style="padding:10px 4px; word-break:break-word;">
|
|
<t t-esc="orderline.productName"/>
|
|
</td>
|
|
|
|
<td style="padding:10px 4px; text-align:center;">
|
|
<t t-esc="orderline.qty"/>
|
|
</td>
|
|
|
|
<td style="padding:10px 4px; text-align:right; font-weight:500;">
|
|
<t t-esc="orderline.price"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- TOTALS SECTION -->
|
|
<div style="margin-top:24px; padding:16px; border:2px solid #000; border-radius:0;">
|
|
<div style="display:flex; justify-content:space-between; font-size:13px; margin-bottom:8px; opacity:0.85;">
|
|
<span style="font-weight:500;">Subtotal</span>
|
|
<span class="placeholder-span">[[ receipt.total_without_tax ]]</span>
|
|
</div>
|
|
|
|
<div style="border-top:1px solid #000; margin:12px 0;"></div>
|
|
|
|
<div style="display:flex; justify-content:space-between; font-size:15px; font-weight:700; letter-spacing:0.5px;">
|
|
<span>TOTAL</span>
|
|
<span class="placeholder-span">[[ receipt.amount_total ]]</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- QR AREA -->
|
|
<div class="qrArea"
|
|
style="display:flex; justify-content:center; padding:16px; margin:24px 0; border-radius:0;">
|
|
</div>
|
|
|
|
<!-- FOOTER -->
|
|
<div style="text-align:center; font-size:12px; border-top:2px solid #000; padding-top:16px; letter-spacing:0.5px; line-height:1.8;">
|
|
<div style="font-weight:600; margin-bottom:4px;">Thank You</div>
|
|
<div style="opacity:0.7;">We appreciate your business</div>
|
|
</div>
|
|
|
|
</div>
|
|
]]></field>
|
|
</record>
|
|
</odoo>
|
|
|