diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/pos_restaurant/static/src/xml/Screens/TicketScreen.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/pos_restaurant/static/src/xml/Screens/TicketScreen.xml')
| -rw-r--r-- | addons/pos_restaurant/static/src/xml/Screens/TicketScreen.xml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/addons/pos_restaurant/static/src/xml/Screens/TicketScreen.xml b/addons/pos_restaurant/static/src/xml/Screens/TicketScreen.xml new file mode 100644 index 00000000..1c0ac260 --- /dev/null +++ b/addons/pos_restaurant/static/src/xml/Screens/TicketScreen.xml @@ -0,0 +1,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> |
