diff --git a/.vscode/launch.json b/.vscode/launch.json index c0f0d08d..cd448218 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -48,7 +48,7 @@ "AYANOVA_DATA_PATH": "c:\\temp\\ravendata", "AYANOVA_USE_URLS": "http://*:7575;", //"AYANOVA_PERMANENTLY_ERASE_DATABASE":"true", - "AYANOVA_SERVER_TEST_MODE": "false", + "AYANOVA_SERVER_TEST_MODE": "true", //"AYANOVA_REPORT_RENDERING_TIMEOUT":"60", "AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small", "AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin\\" diff --git a/server/AyaNova/util/Seeder.cs b/server/AyaNova/util/Seeder.cs index 296115c0..77b0dc0f 100644 --- a/server/AyaNova/util/Seeder.cs +++ b/server/AyaNova/util/Seeder.cs @@ -1680,7 +1680,7 @@ namespace AyaNova.Util gbiz.TaxPartSaleId = TCGoods; gbiz.TaxRateSaleId = TCServices; gbiz.CustomerAllowCSR = true; - gbiz.CustomerAllowCreateUnit=true; + gbiz.CustomerAllowCreateUnit = true; gbiz.CustomerAllowNotifyCSRAccepted = true; gbiz.CustomerAllowNotifyCSRRejected = true; gbiz.CustomerAllowNotifyServiceImminent = true; @@ -2550,7 +2550,7 @@ namespace AyaNova.Util o.Name = Fake.Finance.Account(6); } while (!HashPartNames.Add(o.Name)); - + o.Active = true; o.Notes = Fake.Lorem.Sentence(null, 3); o.Tags = RandomTags(); @@ -3264,6 +3264,7 @@ namespace AyaNova.Util Created = ((DateTime)o.ServiceDate).AddMinutes(5) }; o.States.Add(WoState); + o.LastStatusId = WoState.WorkOrderStatusId; } } @@ -3277,6 +3278,7 @@ namespace AyaNova.Util Created = ((DateTime)o.ServiceDate).AddHours(1) }; o.States.Add(WoState); + o.LastStatusId = WoState.WorkOrderStatusId; } } @@ -3290,6 +3292,7 @@ namespace AyaNova.Util Created = ((DateTime)o.ServiceDate).AddHours(1).AddMinutes(5) }; o.States.Add(WoState); + o.LastStatusId = WoState.WorkOrderStatusId; } } if (Fake.Random.Int(1, 4) == 2)//25% chance @@ -4211,7 +4214,7 @@ namespace AyaNova.Util { lastUnitIndex = 0; } - return l.Value[lastUnitIndex]; + return l.Value[lastUnitIndex]; } private long GetRandomCustomerId()