diff options
| author | Joseph Caburnay <jcb@odoo.com> | 2020-07-31 09:36:39 +0000 |
|---|---|---|
| committer | Joseph Caburnay <jcb@odoo.com> | 2020-08-12 09:17:34 +0000 |
| commit | b0107e9230da5cb5c90819e5bee3e9cd323816ee (patch) | |
| tree | 110e65cd9a180fbf782a70c392b9378a1f662e89 /addons/pos_restaurant/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml | |
| parent | 96f7c5eda84d6b7a1eade31efb8c35aff4ce94c4 (diff) | |
[IMP] pos_restaurant,point_of_sale: set tip after payment
1. Introduce an option in restaurant config to allow setting tips after payment.
2. Tip form is shown in bills so the customers can choose/set their tips.
3. Validated orders are kept in TipScreen (access via TicketScreen) so that at the
end of the day, the user/cashier can set the tips for each validated order.
closes odoo/odoo#55488
Task-id: 2117029
Related: odoo/upgrade#1606
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
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 | 44 |
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> |
