This commit is contained in:
@@ -241,7 +241,7 @@ namespace AyaNova.Util
|
||||
await SeedLoanLoanUnitAsync(log, 5);
|
||||
await SeedCustomerServiceRequestAsync(log, 5);
|
||||
await SeedPartWarehouseAsync(log, 5);
|
||||
await SeedPartAsync(log, 20, 100);
|
||||
await SeedPartAsync(log, 20, 10000);
|
||||
await SeedPartAssemblyAsync(log, 5);
|
||||
await SeedPurchaseOrderAsync(log, 10);
|
||||
await SeedQuoteAsync(log, 5);
|
||||
@@ -299,7 +299,7 @@ namespace AyaNova.Util
|
||||
await SeedLoanLoanUnitAsync(log, 10);
|
||||
await SeedCustomerServiceRequestAsync(log, 10);
|
||||
await SeedPartWarehouseAsync(log, 10);
|
||||
await SeedPartAsync(log, 100, 300);
|
||||
await SeedPartAsync(log, 100, 10000);
|
||||
await SeedPartAssemblyAsync(log, 5);
|
||||
await SeedPurchaseOrderAsync(log, 30);
|
||||
await SeedQuoteAsync(log, 5);
|
||||
@@ -367,7 +367,7 @@ namespace AyaNova.Util
|
||||
await SeedLoanLoanUnitAsync(log, 20);
|
||||
await SeedCustomerServiceRequestAsync(log, 20);
|
||||
await SeedPartWarehouseAsync(log, 20);
|
||||
await SeedPartAsync(log, 200, 600);
|
||||
await SeedPartAsync(log, 200, 10000);
|
||||
await SeedPartAssemblyAsync(log, 5);
|
||||
await SeedPurchaseOrderAsync(log, 50);
|
||||
await SeedQuoteAsync(log, 5);
|
||||
@@ -442,7 +442,7 @@ namespace AyaNova.Util
|
||||
await SeedLoanLoanUnitAsync(log, 200);
|
||||
await SeedCustomerServiceRequestAsync(log, 200);
|
||||
await SeedPartWarehouseAsync(log, 200);
|
||||
await SeedPartAsync(log, 10000, 6000);
|
||||
await SeedPartAsync(log, 10000, 10000);
|
||||
await SeedPartAssemblyAsync(log, 500);
|
||||
await SeedPurchaseOrderAsync(log, 1000);
|
||||
await SeedQuoteAsync(log, 10);
|
||||
@@ -2853,18 +2853,18 @@ namespace AyaNova.Util
|
||||
}
|
||||
|
||||
//SCHEDULED USERS
|
||||
for (int a = 0; a < woItemCount; a++)//woItemCount works here
|
||||
for (int a = 0; a < 2; a++)
|
||||
{
|
||||
var randomStart = Fake.Random.Int(0, 5);
|
||||
var randomHours = Fake.Random.Int(1, 4);
|
||||
var randomDays = Fake.Random.Int(0, 3);
|
||||
// var randomDays = Fake.Random.Int(0, 3);
|
||||
var randomStop = randomStart + randomHours;
|
||||
var woItemScheduledUser = new WorkOrderItemScheduledUser()
|
||||
{
|
||||
UserId = RandomServiceTechUserId(),
|
||||
EstimatedQuantity = randomHours,
|
||||
StartDate = woDate.AddHours(randomStart).AddDays(randomDays),
|
||||
StopDate = woDate.AddHours(randomStop).AddDays(randomDays)
|
||||
StartDate = woDate.AddHours(randomStart),//.AddDays(randomDays),
|
||||
StopDate = woDate.AddHours(randomStop)//.AddDays(randomDays)
|
||||
};
|
||||
woItem.ScheduledUsers.Add(woItemScheduledUser);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user