This commit is contained in:
2021-06-22 22:34:18 +00:00
parent 4a9d0c57c1
commit 2ac3c95816
3 changed files with 14 additions and 6 deletions

View File

@@ -119,12 +119,17 @@ namespace AyaNova.Api.Controllers
DefaultTaxRateSaleId = AyaNova.Util.ServerGlobalBizSettings.Cache.TaxRateSaleId,
WorkOrderTravelDefaultMinutes = AyaNova.Util.ServerGlobalBizSettings.Cache.WorkOrderTravelDefaultMinutes,
WorkLaborScheduleDefaultMinutes = AyaNova.Util.ServerGlobalBizSettings.Cache.WorkLaborScheduleDefaultMinutes,
SignatureTitle = AyaNova.Util.ServerGlobalBizSettings.Cache.SignatureTitle,
SignatureHeader = AyaNova.Util.ServerGlobalBizSettings.Cache.SignatureHeader,
SignatureFooter = AyaNova.Util.ServerGlobalBizSettings.Cache.SignatureFooter,
//used to drive UI in case of unlicensed or attention required
LicenseStatus = AyaNova.Core.License.ActiveKey.Status,
MaintenanceExpired = AyaNova.Core.License.ActiveKey.MaintenanceExpired,
ServerDbId = AyaNova.Core.License.ServerDbId,
Company = AyaNova.Core.License.ActiveKey.RegisteredTo
// ,
// TestTSDaysWMS=new TimeSpan(22,10,15,22,33),
// TestTSHMS=new TimeSpan(5,16,33),

View File

@@ -77,12 +77,13 @@ namespace AyaNova.Models
public List<string> CustomerAllowNotifyWOCreatedInTags { get; set; } = new List<string>();
public List<string> CustomerAllowNotifyWOCreatedOutTags { get; set; } = new List<string>();
public bool CustomerAllowNotifyWOCompleted { get; set; }
public bool CustomerAllowNotifyWOCompleted { get; set; }
public List<string> CustomerAllowNotifyWOCompletedInTags { get; set; } = new List<string>();
public List<string> CustomerAllowNotifyWOCompletedOutTags { get; set; } = new List<string>();
public string SignatureTitle { get; set; }
public string SignatureHeader { get; set; }
public string SignatureFooter { get; set; }
public GlobalBizSettings()
@@ -90,11 +91,10 @@ namespace AyaNova.Models
Id = 1;//always 1
SearchCaseSensitiveOnly = false;
UseInventory = true;
}
}
//Used internally and at client end as extended rights atop roles system in relation only to Contact (customer type users)
//Used internally and at client end as extended rights atop roles system in relation only to Contact (customer type users)
public record CustomerRightsRecord(bool CSR, bool WO, bool WOWIKI, bool UserSettings, bool NotifyServiceImminent, bool NotifyCSRAccepted, bool NotifyCSRRejected, bool NotifyWOCreated, bool NotifyWOCompleted);
}
/*

View File

@@ -22,7 +22,7 @@ namespace AyaNova.Util
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
private const int DESIRED_SCHEMA_LEVEL = 1;
internal const long EXPECTED_COLUMN_COUNT = 957;
internal const long EXPECTED_COLUMN_COUNT = 960;
internal const long EXPECTED_INDEX_COUNT = 137;
internal const long EXPECTED_CHECK_CONSTRAINTS = 415;
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 118;
@@ -255,6 +255,9 @@ namespace AyaNova.Util
+ "workordercompletebyage INTERVAL NOT NULL DEFAULT '00:00:00', "
+ "workordertraveldefaultminutes INTEGER NOT NULL DEFAULT 0, "
+ "worklaborscheduledefaultminutes INTEGER NOT NULL DEFAULT 0, "
+ "signaturetitle TEXT, "
+ "signatureheader TEXT, "
+ "signaturefooter TEXT, "
+ "customerservicerequestinfohtml TEXT, "
+ "customerallowcsr BOOL DEFAULT FALSE, customerallowcsrintags VARCHAR(255) ARRAY, customerallowcsrouttags VARCHAR(255) ARRAY, "