diff options
Diffstat (limited to 'addons/pos_restaurant/static/src/xml/Screens/SplitBillScreen/SplitOrderline.xml')
| -rw-r--r-- | addons/pos_restaurant/static/src/xml/Screens/SplitBillScreen/SplitOrderline.xml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/addons/pos_restaurant/static/src/xml/Screens/SplitBillScreen/SplitOrderline.xml b/addons/pos_restaurant/static/src/xml/Screens/SplitBillScreen/SplitOrderline.xml new file mode 100644 index 00000000..fd71374f --- /dev/null +++ b/addons/pos_restaurant/static/src/xml/Screens/SplitBillScreen/SplitOrderline.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + + <t t-name="SplitOrderline" owl="1"> + <li class="orderline" t-att-class="{ selected: isSelected, partially: props.split.quantity !== props.line.get_quantity() }"> + <span class="product-name"> + <t t-esc="props.line.get_product().display_name" /> + </span> + <span class="price"> + <t t-esc="env.pos.format_currency(props.line.get_display_price())" /> + </span> + <ul class="info-list"> + <t t-if="props.line.get_quantity_str() !== '1'"> + <li class="info"> + <t t-if="isSelected and props.line.get_unit().is_pos_groupable"> + <em class="big"> + <t t-esc="props.split.quantity" /> + </em> + / + <t t-esc="props.line.get_quantity_str()" /> + </t> + <t t-if="!(isSelected and props.line.get_unit().is_pos_groupable)"> + <em> + <t t-esc="props.line.get_quantity_str()" /> + </em> + </t> + <t t-esc="props.line.get_unit().name" /> + at + <t t-esc="env.pos.format_currency(props.line.get_unit_price())" /> + / + <t t-esc="props.line.get_unit().name" /> + </li> + </t> + <t t-if="props.line.get_discount_str() !== '0'"> + <li class="info"> + <span>With a </span> + <em> + <t t-esc="props.line.get_discount_str()" /> + <span>%</span> + </em> + <span> discount</span> + </li> + </t> + </ul> + </li> + </t> + +</templates> |
