This commit is contained in:
2022-02-24 01:06:21 +00:00
parent fcf3304ed3
commit 75440da55e

View File

@@ -2863,6 +2863,9 @@ namespace AyaNova.Util
o.CreatedDate = woDate > DateTime.UtcNow ? DateTime.UtcNow : woDate;//no created dates in future but want a range of past dates to show off age of wo
o.CompleteByDate = woDate.AddDays(5);
//todo: NEED TO SHOW OFF COMPLETION TIME WIDGETS ETC, so need a o.completeddate set that corresponds also to a completed status set
// o.CustomerContactName = "contact name here";
o.CustomerId = GetRandomCustomerId();//Fake.Random.Long(1, TotalSeededCustomers);
@@ -3330,7 +3333,7 @@ namespace AyaNova.Util
{
WorkOrderStatusId = (long)SeedWOStatus.Closed,
UserId = RandomServiceTechUserId(),
Created = ((DateTime)o.ServiceDate).AddHours(2)
Created = ((DateTime)o.ServiceDate).AddHours(2)//TODO: set this based on completed date above to come
};
o.States.Add(WoState);
o.LastStatusId = WoState.WorkOrderStatusId;