From 0127abadae45cc25a9604f621d3807e2a256a767 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Sat, 11 Feb 2023 18:17:22 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index 04860788745e..98618f8500a1 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -334696,7 +334696,7 @@ t1.total = 0; B.JSArray_methods.forEach$1(_this.lineItems._list, new A.CalculateInvoiceTotal_getTaxable_closure(t1, _this, precision)); t2 = _this.discount; - if (t2 > 0) { + if (t2 !== 0) { t3 = t1.total; if (_this.isAmountDiscount) t1.total = t3 - t2; @@ -334888,21 +334888,11 @@ }; A.CalculateInvoiceTotal_getTaxable_closure.prototype = { call$1(invoiceItem) { - var t3, _this = this, - lineTotal = invoiceItem.quantity * invoiceItem.cost, - t1 = _this.$this, - t2 = t1.discount; - if (t2 !== 0) - if (t1.isAmountDiscount) { - t3 = _this._box_0.total; - if (t3 !== 0) - lineTotal -= A.round(lineTotal / t3 * t2, _this.precision); - } else - lineTotal -= A.round(lineTotal * t2 / 100, _this.precision); - t2 = invoiceItem.discount; - if (t2 !== 0) - lineTotal = t1.isAmountDiscount ? lineTotal - t2 : lineTotal - A.round(lineTotal * t2 / 100, _this.precision); - _this._box_0.total += lineTotal; + var lineTotal = invoiceItem.quantity * invoiceItem.cost, + t1 = invoiceItem.discount; + if (t1 !== 0) + lineTotal = this.$this.isAmountDiscount ? lineTotal - t1 : lineTotal - A.round(lineTotal * t1 / 100, this.precision); + this._box_0.total += lineTotal; }, $signature: 301 };