From dcceba909a750cb952ad5f7096a341fa5c88a150 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Tue, 9 Nov 2021 08:25:23 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 42 ++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index 0166fda9e4..e5e62bd862 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -280565,26 +280565,30 @@ return t1; }, get$calculatedStatusId: function() { - var t1, t2, _this = this; - if (_this.get$isPastDue()) { - t1 = _this.statusId; - t1 = !(t1 === "5" || t1 === "6"); - } else - t1 = false; - if (t1) - return "-1"; - t1 = _this.entityType; - if (C.JSArray_methods.contains$1(H.setRuntimeTypeInfo([C.EntityType_recurringInvoice], type$.JSArray_legacy_EntityType), t1)) - if (_this.statusId === "2") - t2 = _this.lastSentDate.length === 0; + var _this = this, + t1 = type$.JSArray_legacy_EntityType, + t2 = _this.entityType; + if (C.JSArray_methods.contains$1(H.setRuntimeTypeInfo([C.EntityType_recurringInvoice], t1), t2)) { + if (C.JSArray_methods.contains$1(H.setRuntimeTypeInfo([C.EntityType_recurringInvoice], t1), t2)) + if (_this.statusId === "2") + t1 = _this.lastSentDate.length === 0; + else + t1 = false; else - t2 = false; - else - t2 = false; - if (t2) - return "-1"; - if (_this.get$isViewed() && _this.get$isUnpaid()) - return t1 === C.EntityType_invoice ? "-3" : "-2"; + t1 = false; + if (t1) + return "-1"; + } else { + if (_this.get$isPastDue()) { + t1 = _this.statusId; + t1 = !(t1 === "5" || t1 === "6"); + } else + t1 = false; + if (t1) + return "-1"; + if (_this.get$isViewed() && _this.get$isUnpaid()) + return t2 === C.EntityType_invoice ? "-3" : "-2"; + } return _this.statusId; }, get$isPastDue: function() {