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.
95 lines
4.4 KiB
95 lines
4.4 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates id="template" xml:space="preserve">
|
|
<!-- A template is created for the print popup -->
|
|
<t t-name="PrintPopup" owl="1">
|
|
<div class="popup popup-selection">
|
|
<header class="title drag-handle" style="font-size: 23px;">
|
|
<t t-esc="props.title"/>
|
|
</header>
|
|
<div class="form-container">
|
|
<t t-if="this.pos.company_logo_base64">
|
|
<img class="pos-receipt-logo"
|
|
t-att-src="this.pos.company_logo_base64"
|
|
alt="Logo"/>
|
|
<br/>
|
|
</t>
|
|
<t t-if="!this.pos.company_logo_base64">
|
|
<h2 class="pos-receipt-center-align">
|
|
<t t-esc="this.pos.company.name"/>
|
|
</h2>
|
|
<br/>
|
|
</t>
|
|
<div class="pos-receipt-contact">
|
|
<t t-if="this.pos.company.name">
|
|
<div><t t-esc="this.pos.company.name" /></div>
|
|
</t>
|
|
<t t-if="this.pos.company.phone">
|
|
<div>Tel:<t t-esc="this.pos.company.phone"/></div>
|
|
</t>
|
|
<t t-if="this.pos.company.vat">
|
|
<div><t t-esc="this.pos.company.vat_label"/>:
|
|
<t t-esc="this.pos.company.vat"/></div>
|
|
</t>
|
|
<t t-if="this.pos.company.email">
|
|
<div><t t-esc="this.pos.company.email" /></div>
|
|
</t>
|
|
<t t-if="this.pos.company.website">
|
|
<div><t t-esc="this.pos.company.website" /></div>
|
|
</t>
|
|
<t t-if="this.pos.header_html">
|
|
<t t-out="this.pos.header_html"/>
|
|
</t>
|
|
<t t-if="!this.pos.header_html and this.pos.header">
|
|
<div style="white-space:pre-line"><t t-esc="this.pos.header" /></div>
|
|
</t>
|
|
<t t-if="this.pos.selectedOrder.cashier">
|
|
<div class="cashier">
|
|
<div>--------------------------------</div>
|
|
<div>Served by <t
|
|
t-esc="this.pos.selectedOrder.cashier.name"/></div>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
<br/>
|
|
<br/>
|
|
<!-- Orderlines -->
|
|
<div class="orderlines-receipt">
|
|
<t t-foreach="orderlines" t-as="line" t-key="line[0]">
|
|
<t t-esc="line[0]"/>
|
|
<span style="float: right;margin-right:20px;"><t t-esc="line[3]"/></span>
|
|
<br/>
|
|
<span>(</span>
|
|
<t t-esc="line[1]"/>x
|
|
<t t-esc="line[2]"/>
|
|
<span>)</span>
|
|
<br/>
|
|
</t>
|
|
</div>
|
|
<!--Total -->
|
|
<div class="pos-receipt-right-align">----------</div>
|
|
<br/>
|
|
<div class="pos-receipt-amount" style="margin-left:40px; font-size: 18px;">
|
|
TOTAL
|
|
<span t-esc="total" class="pos-receipt-right-align"
|
|
style="float: right;"/>
|
|
</div>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
<footer class="footer" style="display: flex; justify-content: space-between; margin-top: 10px; margin-left:200px; margin-right: 10px; align-items: center;">
|
|
<div style="display: flex; align-items: center;">
|
|
<div class="button confirm" t-on-click="printReceipt"
|
|
style="background-color: #4CAF50; color: white; padding: 8px 16px; border: none; border-radius: 4px;">
|
|
<t t-esc="props.confirmText"/>
|
|
</div>
|
|
<br/>
|
|
<br/>
|
|
<div class="button confirm" t-on-click="cancel"
|
|
style="background-color: #ccc; color: #333; padding: 8px 16px; border: 1px solid #ccc; border-radius: 4px; ">
|
|
<t t-esc="props.cancelText"/>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
|