Debian Codegraph @

addons/pos_restaurant/static/src/app/screens/ticket_screen/ticket_screen.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <templates id="template" xml:space="preserve">
3
4 <t t-name="pos_restaurant.TicketScreen" t-inherit="point_of_sale.TicketScreen" t-inherit-mode="extension">
5 <xpath expr="//div[hasclass('order-row')]//div[@name='delete-column'] | //tr[hasclass('order-row')]//td[@name='delete-column']" position="inside">
6 <div t-if="state.filter == 'TIPPING'" class="col end narrow p-2" name="tip">
7 <div t-if="ui.isSmall">Tip</div>
8 <div><TipCell order="order" /></div>
9 </div>
10 </xpath>
11 <xpath expr="//SearchBar" position="before">
12 <button class="settle-tips btn btn-lg btn-primary" t-if="state.filter == 'TIPPING'" t-on-click="settleTips">Settle</button>
13 </xpath>
14 <xpath expr="//div[@id='order-tags']" position="after">
15 <t t-set="tableTag" t-value="getTableTag(order)"/>
16 <div t-if="tableTag" t-attf-class="badge rounded o_colorlist_item_color_1 ms-1" style="font-size: 0.75rem !important;">
17 Table <t t-esc="tableTag" />
18 </div>
19 </xpath>
20 </t>
21
22 <t t-name="pos_restaurant.TipCell">
23 <div class="tip-cell" t-on-click.stop="editTip">
24 <t t-if="state.isEditing">
25 <input type="text" name="tip-amount" t-ref="autofocus" t-model="orderUiState.inputTipAmount" t-on-blur="onBlur" t-on-keydown="onKeydown" />
26 </t>
27 <div t-else="">
28 <t t-esc="tipAmountStr"></t>
29 </div>
30 </div>
31 </t>
32
33 </templates>