From 5c966095142b3e2464206e29df21d4501575a78f Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Wed, 16 Feb 2022 10:46:33 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index 8815380bdd91..95f772b6789f 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -386278,38 +386278,40 @@ B.JSArray_methods.add$1(pdfColumns, customField3); if (company.getCustomFieldLabel$1(customField4).length !== 0 && !B.JSArray_methods.contains$1(pdfColumns, customField4)) B.JSArray_methods.add$1(pdfColumns, customField4); - for (t1 = pdfColumns.length, t2 = !company.enableProductQuantity, t3 = company.enableProductDiscount, t4 = _this._invoice_edit_items_desktop$_columns, _i = 0; _i < pdfColumns.length; pdfColumns.length === t1 || (0, A.throwConcurrentModificationError)(pdfColumns), ++_i) { + t1 = _this._invoice_edit_items_desktop$_columns; + B.JSArray_methods.set$length(t1, 0); + for (t2 = pdfColumns.length, t3 = !company.enableProductQuantity, t4 = company.enableProductDiscount, _i = 0; _i < pdfColumns.length; pdfColumns.length === t2 || (0, A.throwConcurrentModificationError)(pdfColumns), ++_i) { column = pdfColumns[_i]; if ("item" === column || "service" === column) - t4.push("item"); + t1.push("item"); else if ("description" === column) - t4.push("description"); + t1.push("description"); else if ("unit_cost" === column || "rate" === column) - t4.push(_s9_); + t1.push(_s9_); else { if ("quantity" === column || "hours" === column) - t5 = !t2 || _this._widget.isTasks; + t5 = !t3 || _this._widget.isTasks; else t5 = false; if (t5) - t4.push(_s8_); + t1.push(_s8_); else if (("product1" === column || "task1" === column) && company.getCustomFieldLabel$1(customField1).length !== 0) - t4.push("custom1"); + t1.push("custom1"); else if (("product2" === column || "task2" === column) && company.getCustomFieldLabel$1(customField2).length !== 0) - t4.push("custom2"); + t1.push("custom2"); else if (("product3" === column || "task3" === column) && company.getCustomFieldLabel$1(customField3).length !== 0) - t4.push("custom3"); + t1.push("custom3"); else if (("product4" === column || "task4" === column) && company.getCustomFieldLabel$1(customField4).length !== 0) - t4.push("custom4"); + t1.push("custom4"); else if ("tax" === column) { if (hasTax1) - t4.push("tax1"); + t1.push("tax1"); if (hasTax2) - t4.push("tax2"); + t1.push("tax2"); if (hasTax3) - t4.push("tax3"); - } else if ("discount" === column && t3) - t4.push("discount"); + t1.push("tax3"); + } else if ("discount" === column && t4) + t1.push("discount"); } } },