This commit is contained in:
@@ -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.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);
|
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.CustomerContactName = "contact name here";
|
||||||
o.CustomerId = GetRandomCustomerId();//Fake.Random.Long(1, TotalSeededCustomers);
|
o.CustomerId = GetRandomCustomerId();//Fake.Random.Long(1, TotalSeededCustomers);
|
||||||
|
|
||||||
@@ -3330,7 +3333,7 @@ namespace AyaNova.Util
|
|||||||
{
|
{
|
||||||
WorkOrderStatusId = (long)SeedWOStatus.Closed,
|
WorkOrderStatusId = (long)SeedWOStatus.Closed,
|
||||||
UserId = RandomServiceTechUserId(),
|
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.States.Add(WoState);
|
||||||
o.LastStatusId = WoState.WorkOrderStatusId;
|
o.LastStatusId = WoState.WorkOrderStatusId;
|
||||||
|
|||||||
Reference in New Issue
Block a user