This commit is contained in:
2021-05-11 17:29:36 +00:00
parent 0657e24edf
commit fc4b84ae85
3 changed files with 11 additions and 7 deletions

View File

@@ -2488,7 +2488,7 @@ namespace AyaNova.Util
o.InternalReferenceNumber = "irf-" + Fake.Finance.Account(4);
o.ServiceDate = woDate;
int woItemCount = Fake.Random.Int(1, 6);
int woItemCount = Fake.Random.Int(1, 3);
for (int y = 0; y < woItemCount; y++)
{
var woItem = new WorkOrderItem()
@@ -2496,7 +2496,9 @@ namespace AyaNova.Util
Sequence = y + 1,
Notes = $"itemnotes - {y} ",
TechNotes = $"technotes - {y}",
RequestDate = woDate.AddMinutes(y)
RequestDate = woDate.AddMinutes(y),
WorkorderItemPriorityId=Fake.Random.Long(1, 5),//there are 5 different sample priorities
WorkorderItemStatusId=Fake.Random.Long(1, 3)//there are 3 different sample woitem status
};
//SCHEDULED USERS