case 4069

This commit is contained in:
2022-01-04 18:07:25 +00:00
parent 92c8c8d3f8
commit 717b1f3ec0
2 changed files with 7 additions and 4 deletions

2
.vscode/launch.json vendored
View File

@@ -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\\"

View File

@@ -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()