Commit f8e9aea7 by Etienne Freiss

fix about max amount of meal voucher

parent 2d9449d7
......@@ -89,7 +89,6 @@ odoo.define("pos_meal_voucher.screens", function (require) {
return methods;
},
payment_input: function() {
var self = this;
......@@ -111,7 +110,7 @@ odoo.define("pos_meal_voucher.screens", function (require) {
this.format_currency(current_max),
});
const max_curent_amount = total_eligible-total_received+order.selected_paymentline.get_amount() ;
const max_curent_amount = current_max-total_received+order.selected_paymentline.get_amount() ;
order.selected_paymentline.set_amount(max_curent_amount);
this.order_changes();
this.render_paymentlines();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment