This commit is contained in:
2021-02-05 17:13:43 +00:00
parent ad26cc9c60
commit b924687f11
2 changed files with 4 additions and 4 deletions

2
.vscode/launch.json vendored
View File

@@ -53,7 +53,7 @@
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
"AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles",
"AYANOVA_SERVER_TEST_MODE": "true",
"AYANOVA_SERVER_TEST_MODE": "false",
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-7",
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_13\\bin\\"

View File

@@ -226,7 +226,7 @@ namespace AyaNova.Util
await SeedUserAsync(log, 1, AuthorizationRoles.BizAdminFull | AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull | AuthorizationRoles.OpsAdminFull, UserType.Service);
//Generate one office person / secretary
await SeedUserAsync(log, 1, AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull | AuthorizationRoles.AccountingFull, UserType.NotService);
await SeedWidgetAsync(log, 10000);
await SeedWidgetAsync(log, 100);
await SeedCustomerAsync(log, 100);
await SeedHeadOfficeAsync(log, 10);
await SeedVendorAsync(log, 25);
@@ -909,8 +909,8 @@ namespace AyaNova.Util
Array values = Enum.GetValues(typeof(UserType));
Random random = new Random();
DateTime seedStartWindow = DateTime.Now.AddYears(-2);
DateTime seedEndWindow = DateTime.Now.AddYears(2);
DateTime seedStartWindow = DateTime.Now.AddYears(-1).AddMonths(-6);
DateTime seedEndWindow = DateTime.Now.AddYears(1).AddMonths(6);
for (int x = 0; x < count; x++)
{
Widget o = new Widget();