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.
 
 
 
 
 

91 lines
4.3 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!--Template for order summary receipt-->
<templates id="template" xml:space="preserve">
<t t-name="OrderSummaryReceipt" owl="1">
<div class="pos-receipt-container" style="padding:50px;background-color: white;">
<div class="pos-receipt" style="background-color: white">
<t t-if="props.data.data.company_logo">
<img class="pos-receipt-logo" t-att-src="props.data.data.company_logo"
alt="Logo"/>
<br/>
</t>
<t t-if="!props.data.data.company_logo">
<h2 class="pos-receipt-center-align">
<t t-esc="props.data.data.company.name"/>
</h2>
<br/>
</t>
<div class="pos-receipt-contact">
<t t-if="props.data.data.company.phone">
<div>Tel:<t t-esc="props.data.data.company.phone"/></div>
</t>
<t t-if="props.data.data.company.email">
<div><t t-esc="props.data.data.company.email" /></div>
</t>
<t t-if="props.data.data.company.website">
<div><t t-esc="props.data.data.company.website" /></div>
</t>
<t t-if="props.data.data.config.current_user_id">
<div class="cashier">
<div>--------------------------------</div>
<div>Served by <t t-esc="props.data.data.config.current_user_id.name"/></div>
</div>
</t>
</div>
<br/>
<h4 class="pos-receipt-center-align">
Order Summary
</h4>
<table style="font-size:14px !important;margin-left: auto; margin-right: auto;"
t-if="props.data.start_date and props.data.end_date">
<tr>
<td><strong>Start Date:</strong></td>
<td><t t-esc="props.data.start_date"/></td>
</tr>
<tr>
<td><strong>End Date:</strong></td>
<td><t t-esc="props.data.end_date"/></td>
</tr>
</table>
<table style="width: 100%; margin-top:10px; font-size:14px !important;">
<thead style="border-bottom: 2px solid black;">
<tr>
<th>Order Ref</th>
<th style="text-align: center;">Status</th>
<th style="text-align: center; width:100px;">Date</th>
<th style="text-align: right;">Total</th>
</tr>
</thead>
<tbody style="margin-top:5px;">
<t t-set="sub_total" t-value="0"/>
<tr t-foreach="props.data.orders" t-as="order" t-key="order.id">
<td>
<t t-esc="order.order_name"/>
</td>
<td style="text-align: center;">
<t t-esc="order.state"/>
</td>
<td style="text-align: center;">
<div><t t-esc="order.date_order"/></div>
</td>
<td style="text-align: right;">
<t t-esc="order.amount_total"/>
</td>
<t t-set="sub_total"
t-value="sub_total + order.amount_total"/>
</tr>
<br/>
<tr style="border-top: 2px solid black;">
<td>Total:</td>
<td/>
<td/>
<td style="text-align: right;">
<t t-esc="sub_total"/>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</t>
</templates>