Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasProgrammer committed Sep 21, 2023
1 parent c11eb1a commit 5313261
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pos_multi_discount_global/static/src/js/PaymentScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5313261

Please sign in to comment.