This commit is contained in:
2020-01-22 19:25:45 +00:00
parent 0d1988a20e
commit 9a16a6d92f
2 changed files with 4 additions and 2 deletions

View File

@@ -408,7 +408,7 @@ namespace AyaNova
// ******************** TESTING WIPE DB *****************************
//
//Set this to true to wipe the db and reinstall a trial license and re-seed the data
var TESTING_REFRESH_DB = false;//#######################################################################################
var TESTING_REFRESH_DB = true;//#######################################################################################
#if (DEBUG)

View File

@@ -529,6 +529,8 @@ namespace AyaNova.Util
u.Roles = roles;
u.LocaleId = localeId == 0 ? ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID : localeId;
u.UserType = userType;
u.EmployeeNumber = (44 + SeededUserCount).ToString();
u.Notes = Fake.Name.JobDescriptor();
//TODO: After have USER and HEADOFFICE and VENDOR, if usertype is subcontractor or client or headoffice it needs to set a corresponding user's parent org record id to go with it
u.Tags = RandomTags(Fake);
//Children and relations
@@ -576,7 +578,7 @@ namespace AyaNova.Util
o.Notes = f.Lorem.Paragraphs();
o.Tags = RandomTags(f);
o.UserId=f.Random.Int(1, SeededUserCount);
o.UserId = f.Random.Int(1, SeededUserCount);
//RANDOM CUSTOM FIELD DATA
var c1 = DateUtil.UniversalISO8661Format(f.Date.Between(DateTime.Now.AddYears(-1), DateTime.Now.AddYears(1)));