From 531326167b94fb5dc617a02da6dfa4adeff15928 Mon Sep 17 00:00:00 2001 From: Ilyas Date: Thu, 21 Sep 2023 12:57:14 +0200 Subject: [PATCH] wip --- pos_multi_discount_global/static/src/js/PaymentScreen.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pos_multi_discount_global/static/src/js/PaymentScreen.js b/pos_multi_discount_global/static/src/js/PaymentScreen.js index 32655e23f2..58181ed396 100644 --- a/pos_multi_discount_global/static/src/js/PaymentScreen.js +++ b/pos_multi_discount_global/static/src/js/PaymentScreen.js @@ -7,7 +7,6 @@ odoo.define("pos_multi_discount_global.PaymentScreen", function (require) { const PaymentScreen = require("point_of_sale.PaymentScreen"); const Registries = require("point_of_sale.Registries"); var utils = require("web.utils"); - var round_pr = utils.round_precision; const MultiDiscountPaymentScreen = (PaymentScreen) => class extends PaymentScreen { @@ -154,14 +153,10 @@ odoo.define("pos_multi_discount_global.PaymentScreen", function (require) { } }); // This.process_fixed_discount(amount, order); - abs_discount_amount = amount; } else if (disc_type === "percent") { this.reset_percent_discount(); - total = order.get_total_without_tax(); this.process_percent_discount(amount, order); - abs_discount_amount = (amount * total) / 100; } - var new_total = order.get_total_without_tax(); // If ( // abs_discount_amount > 0 && // total - abs_discount_amount !== new_total