blob: 1c0ac2608e632510b5c3b3cf0298f06694c66c44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="TicketScreen" t-inherit="point_of_sale.TicketScreen" t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('header-row')]//div[@name='delete']" position="before">
<div t-if="env.pos.config.iface_floorplan" class="col start" name="table">Table</div>
<div t-if="filter === 'Tipping'" class="col end narrow" name="tip">Tip</div>
</xpath>
<xpath expr="//div[hasclass('order-row')]//div[@name='delete']" position="before">
<div t-if="env.pos.config.iface_floorplan" class="col start" name="table">
<t t-esc="getTable(order)"></t>
</div>
<div t-if="filter === 'Tipping'" class="col end narrow" name="tip">
<TipCell order="order" />
</div>
</xpath>
<xpath expr="//div[hasclass('buttons')]" position="inside">
<button class="settle-tips" t-if="filter === 'Tipping'" t-on-click="settleTips">Settle</button>
</xpath>
</t>
<t t-name="TipCell" owl="1">
<div class="tip-cell" t-on-click.stop="editTip">
<t t-if="state.isEditing">
<input type="text" name="tip-amount" t-model="orderUiState.inputTipAmount" t-on-blur="onBlur" t-on-keydown="onKeydown" />
</t>
<div t-else="">
<t t-esc="tipAmountStr"></t>
</div>
</div>
</t>
</templates>
|