1 <?xml version="1.0" encoding="UTF-8"?>
2 <templates id="template" xml:space="preserve">
4 <t t-name="SplitbillButton">
5 <span class="control-button order-split">
6 <i class="fa fa-copy"></i>
11 <t t-name="SplitOrderline">
13 <li t-attf-class="orderline #{ selected ? 'selected' : ''} #{ quantity !== line.get_quantity() ? 'partially' : '' }"
15 <span class="product-name">
16 <t t-esc="line.get_product().display_name"/>
19 <t t-esc="widget.format_currency(line.get_display_price())"/>
21 <ul class="info-list">
22 <t t-if="line.get_quantity_str() !== '1'">
24 <t t-if='selected and line.get_unit().groupable'>
26 <t t-esc='quantity' />
29 <t t-esc="line.get_quantity_str()" />
31 <t t-if='!(selected and line.get_unit().groupable)'>
33 <t t-esc="line.get_quantity_str()" />
36 <t t-esc="line.get_unit().name" />
38 <t t-esc="widget.format_currency(line.get_unit_price())" />
40 <t t-esc="line.get_unit().name" />
43 <t t-if="line.get_discount_str() !== '0'">
47 <t t-esc="line.get_discount_str()" />%
56 <t t-name="SplitbillScreenWidget">
57 <div class='splitbill-screen screen'>
58 <div class='screen-content'>
59 <div class='top-content'>
60 <span class='button back'>
61 <i class='fa fa-angle-double-left'></i>
64 <h1>Bill Splitting</h1>
66 <div class='left-content touch-scrollable scrollable-y'>
68 <ul class='orderlines'>
72 <div class='right-content touch-scrollable scrollable-y'>
73 <div class='order-info'>
74 <span class='subtotal'><t t-esc='widget.format_currency(0.0)'/></span>
76 <div class='paymentmethods'>
77 <t t-foreach="widget.pos.cashregisters" t-as="cashregister">
78 <div class='button paymentmethod' t-att-data-id="cashregister.id">
79 <t t-esc='cashregister.journal.name' />