This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user