summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml
diff options
context:
space:
mode:
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.xml44
1 files changed, 44 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
index 8d195f6cca2..e8f129507e7 100644
--- a/addons/pos_restaurant/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml
+++ b/addons/pos_restaurant/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml
@@ -10,6 +10,50 @@
<xpath expr="//div[hasclass('receipt-change')]" position="attributes">
<attribute name="t-if">!props.isBill</attribute>
</xpath>
+ <xpath expr="//div[hasclass('before-footer')]" position="after">
+ <t t-if="env.pos.config.set_tip_after_payment and !props.order.is_tipped">
+ <div class="tip-form">
+ <div>Add a tip:</div>
+ <div class="percentage-options">
+ <div class="option">
+ <div class="checkbox"></div>
+ <div>
+ <div class="amount">
+ <t t-esc="env.pos.format_currency(receipt.total_with_tax * 0.15)"></t>
+ </div>
+ <div class="percentage">(15%)</div>
+ </div>
+ </div>
+ <div class="option">
+ <div class="checkbox"></div>
+ <div>
+ <div class="amount">
+ <t t-esc="env.pos.format_currency(receipt.total_with_tax * 0.20)"></t>
+ </div>
+ <div class="percentage">(20%)</div>
+ </div>
+ </div>
+ <div class="option">
+ <div class="checkbox"></div>
+ <div>
+ <div class="amount">
+ <t t-esc="env.pos.format_currency(receipt.total_with_tax * 0.25)"></t>
+ </div>
+ <div class="percentage">(25%)</div>
+ </div>
+ </div>
+ </div>
+ <div class="custom-amount">
+ <span>Custom amount:</span>
+ <div class="pos-receipt-right-align">________________________</div>
+ </div>
+ <div class="signature">
+ <span>Signature:</span>
+ <div class="pos-receipt-right-align">________________________</div>
+ </div>
+ </div>
+ </t>
+ </xpath>
</t>
</templates>