Commit f8e28804 by Yvon Kerdoncuff

Merge branch '5260-mise-en-coherence-montant-eligible' into 'dev_cooperatic'

in mona, fix display of total eligible so that it takes into account mona and cb…

See merge request !65
parents 61c405a9 5ca27cd4
......@@ -80,11 +80,12 @@ odoo.define("lacagette_mona.screens", function (require) {
if (this.pos.config.enable_mona) {
let total_mona_received = order.get_total_mona_received();
let total_mona_eligible = order.get_total_mona_eligible_including_meal_vouchers();
let total_meal_vouchers_received = order.get_total_meal_voucher_received();
let total_meal_vouchers_eligible = order.get_total_meal_vouchers_eligible_including_mona();
this.el.querySelector("#monA-eligible-amount").textContent = this.format_currency(total_mona_eligible);
this.el.querySelector("#meal-voucher-eligible-amount").textContent = this.format_currency(total_meal_vouchers_eligible);
this.el.querySelector("#monA-received-amount").textContent = this.format_currency(total_mona_received);
this.el.querySelector("#monA-eligible-amount").textContent = this.format_currency(total_mona_eligible-total_mona_received);
this.el.querySelector("#meal-voucher-eligible-amount").textContent = this.format_currency(total_meal_vouchers_eligible-total_meal_vouchers_received);
this.el.querySelector("#monA-received-amount").textContent = this.format_currency(total_mona_received);
}
},
payment_input: function(input) {
......
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