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/ReceiptScreen/OrderReceipt.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/pos_restaurant/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml')
| -rw-r--r-- | addons/pos_restaurant/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/addons/pos_restaurant/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml b/addons/pos_restaurant/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml new file mode 100644 index 00000000..94a8e45e --- /dev/null +++ b/addons/pos_restaurant/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + + <t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1"> + <xpath expr="//div[hasclass('pos-receipt-order-data')]" position="inside"> + <t t-if="props.isBill"> + <div>PRO FORMA</div> + </t> + </xpath> + <xpath expr="//div[hasclass('receipt-change')]" position="attributes"> + <attribute name="t-if">!props.isBill</attribute> + </xpath> + <xpath expr="//div[hasclass('cashier')]" position="after"> + <t t-if="receipt.table"> + at table <t t-esc="receipt.table" /> + </t> + <t t-if="receipt.table and receipt.customer_count"> + <div>Guests: <t t-esc="receipt.customer_count" /></div> + </t> + </xpath> + <xpath expr="//div[hasclass('before-footer')]" position="after"> + <t t-if="props.isBill and env.pos.config.set_tip_after_payment"> + <div class="tip-form"> + <div class="title">For convenience, we are providing the following gratuity calculations:</div> + <div class="percentage-options"> + <div class="option"> + <div>15%</div> + <div class="amount"> + <t t-esc="env.pos.format_currency(receipt.total_with_tax * 0.15)"></t> + </div> + </div> + <div class="option"> + <div>20%</div> + <div class="amount"> + <t t-esc="env.pos.format_currency(receipt.total_with_tax * 0.20)"></t> + </div> + </div> + <div class="option"> + <div>25%</div> + <div class="amount"> + <t t-esc="env.pos.format_currency(receipt.total_with_tax * 0.25)"></t> + </div> + </div> + </div> + </div> + </t> + </xpath> + </t> + +</templates> |
