From 29857fcec5c2a09ecd5dd1f8a3571fca0de35ab1 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Tue, 14 Sep 2021 16:11:20 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 65 ++++++++----------------------------- 1 file changed, 14 insertions(+), 51 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index a3f2e3a2d4fd..a6173fed5b13 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -310161,13 +310161,9 @@ client = J.$index$asx(this.clientMap._map$_map, t1); if (client == null) client = T.ClientEntity_ClientEntity(t1, null, null); - t1 = invoice.archivedAt; - if (t1 === 0) { + if (!(invoice.get$isArchived() || invoice.isDeleted)) { t1 = invoice.statusId; - if (!(t1 === "5" || t1 === "6")) - t1 = client.archivedAt !== 0; - else - t1 = true; + t1 = t1 === "5" || t1 === "6" || client.get$isArchived() || client.isDeleted; } else t1 = true; if (!t1) @@ -310194,13 +310190,9 @@ client = J.$index$asx(this.clientMap._map$_map, t1); if (client == null) client = T.ClientEntity_ClientEntity(t1, null, null); - t1 = invoice.archivedAt; - if (t1 === 0) { + if (!(invoice.get$isArchived() || invoice.isDeleted)) { t1 = invoice.statusId; - if (!(t1 === "5" || t1 === "6")) - t1 = client.archivedAt !== 0; - else - t1 = true; + t1 = t1 === "5" || t1 === "6" || client.get$isArchived() || client.isDeleted; } else t1 = true; if (!t1) @@ -310223,19 +310215,15 @@ }; A._recentPayments_closure.prototype = { call$2: function(index, payment) { - var t2, - t1 = payment.clientId, + var t1 = payment.clientId, client = J.$index$asx(this.clientMap._map$_map, t1); if (client == null) client = T.ClientEntity_ClientEntity(t1, null, null); - t1 = payment.archivedAt === 0; - if (t1) - t2 = client.archivedAt !== 0; - else - t2 = true; - if (!t2) - if (t1 && payment.createdAt > this.threeMonthsAgo) + if (!(payment.get$isArchived() || payment.isDeleted || client.get$isArchived() || client.isDeleted)) { + t1 = payment.archivedAt; + if (t1 === 0 && payment.createdAt > this.threeMonthsAgo) this.payments.push(payment); + } }, $signature: 187 }; @@ -310262,12 +310250,7 @@ client = J.$index$asx(this.clientMap._map$_map, t1); if (client == null) client = T.ClientEntity_ClientEntity(t1, null, null); - t1 = quote.archivedAt; - if (t1 === 0) - t1 = client.archivedAt !== 0; - else - t1 = true; - if (!t1) + if (!(quote.get$isArchived() || quote.isDeleted || client.get$isArchived() || client.isDeleted)) if (quote.get$isUpcoming()) this.quotes.push(quote); }, @@ -310291,12 +310274,7 @@ client = J.$index$asx(this.clientMap._map$_map, t1); if (client == null) client = T.ClientEntity_ClientEntity(t1, null, null); - t1 = quote.archivedAt; - if (t1 === 0) - t1 = client.archivedAt !== 0; - else - t1 = true; - if (!t1) + if (!(quote.get$isArchived() || quote.isDeleted || client.get$isArchived() || client.isDeleted)) if (quote.get$isPastDue()) this.quotes.push(quote); }, @@ -310320,12 +310298,7 @@ client = J.$index$asx(this.clientMap._map$_map, t1); if (client == null) client = T.ClientEntity_ClientEntity(t1, null, null); - t1 = task.archivedAt; - if (t1 === 0) - t1 = client.archivedAt !== 0; - else - t1 = true; - if (!t1) + if (!(task.get$isArchived() || task.isDeleted || client.get$isArchived() || client.isDeleted)) if (task.get$isRunning()) this.tasks.push(task); }, @@ -310354,12 +310327,7 @@ client = J.$index$asx(this.clientMap._map$_map, t1); if (client == null) client = T.ClientEntity_ClientEntity(t1, null, null); - t1 = task.archivedAt; - if (t1 === 0) - t1 = client.archivedAt !== 0; - else - t1 = true; - if (!t1) + if (!(task.get$isArchived() || task.isDeleted || client.get$isArchived() || client.isDeleted)) if (!task.get$isRunning()) this.tasks.push(task); }, @@ -310388,12 +310356,7 @@ client = J.$index$asx(this.clientMap._map$_map, t1); if (client == null) client = T.ClientEntity_ClientEntity(t1, null, null); - t1 = expense.archivedAt; - if (t1 === 0) - t1 = client.archivedAt !== 0; - else - t1 = true; - if (!t1) + if (!(expense.get$isArchived() || expense.isDeleted || client.get$isArchived() || client.isDeleted)) this.expenses.push(expense); }, $signature: 98