Admin Portal - Profile

This commit is contained in:
hillelcoren 2022-07-01 12:47:06 +00:00
parent ad32472cd3
commit 0e649c7ead

View File

@ -301981,12 +301981,11 @@
return this.rebuild$1(new A.CompanyEntity_coreCompany_closure()); return this.rebuild$1(new A.CompanyEntity_coreCompany_closure());
}, },
isModuleEnabled$1(entityType) { isModuleEnabled$1(entityType) {
var t1, store, _this = this; var t1, _this = this;
if (entityType === B.EntityType_purchaseOrder) { if (entityType === B.EntityType_purchaseOrder) {
t1 = $.$get$navigatorKey(); t1 = $.$get$navigatorKey();
t1.toString; t1.toString;
store = A.StoreProvider_of($.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1), type$.legacy_AppState); if (A.cleanApiUrl(A._lateReadCheck(A.StoreProvider_of($.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1), type$.legacy_AppState).__Store__state, "_state").authState.url) !== "https://staging.invoicing.co")
if (A._lateReadCheck(store.__Store__state, "_state").get$isHosted() && A.cleanApiUrl(A._lateReadCheck(store.__Store__state, "_state").authState.url) !== "https://staging.invoicing.co")
return false; return false;
} }
if ((entityType === B.EntityType_invoice || entityType === B.EntityType_payment) && (_this.enabledModules & 4096) === 0) if ((entityType === B.EntityType_invoice || entityType === B.EntityType_payment) && (_this.enabledModules & 4096) === 0)
@ -343029,10 +343028,13 @@
return (t1 == null ? 0 : t1) > 0; return (t1 == null ? 0 : t1) > 0;
}, },
get$createdAtLimit() { get$createdAtLimit() {
var numberYearsActive, var t2, numberYearsActive,
t1 = this.uiState.selectedCompanyIndex; t1 = this.uiState.selectedCompanyIndex;
t1 = this.userCompanyStates._list[t1].userCompany; t1 = this.userCompanyStates._list[t1].userCompany;
numberYearsActive = t1.settings.numberYearsActive; t2 = t1.settings;
numberYearsActive = t2 == null ? null : t2.numberYearsActive;
if (numberYearsActive == null)
numberYearsActive = 0;
if (!t1.company.isLarge || numberYearsActive === 0) if (!t1.company.isLarge || numberYearsActive === 0)
return 0; return 0;
return B.JSNumber_methods.round$0(Date.now() / 1000) - numberYearsActive * 31536000; return B.JSNumber_methods.round$0(Date.now() / 1000) - numberYearsActive * 31536000;