This commit is contained in:
@@ -240,7 +240,7 @@ namespace AyaNova.Util
|
|||||||
await SeedLoanLoanUnitAsync(log, 5);
|
await SeedLoanLoanUnitAsync(log, 5);
|
||||||
await SeedCustomerServiceRequestAsync(log, 5);
|
await SeedCustomerServiceRequestAsync(log, 5);
|
||||||
await SeedPartWarehouseAsync(log, 5);
|
await SeedPartWarehouseAsync(log, 5);
|
||||||
await SeedPartAsync(log, 20, 5);
|
await SeedPartAsync(log, 20, 100);
|
||||||
await SeedPartAssemblyAsync(log, 5);
|
await SeedPartAssemblyAsync(log, 5);
|
||||||
await SeedPurchaseOrderAsync(log, 20);
|
await SeedPurchaseOrderAsync(log, 20);
|
||||||
await SeedWorkOrderAsync(log, 10);
|
await SeedWorkOrderAsync(log, 10);
|
||||||
@@ -295,7 +295,7 @@ namespace AyaNova.Util
|
|||||||
await SeedLoanLoanUnitAsync(log, 10);
|
await SeedLoanLoanUnitAsync(log, 10);
|
||||||
await SeedCustomerServiceRequestAsync(log, 10);
|
await SeedCustomerServiceRequestAsync(log, 10);
|
||||||
await SeedPartWarehouseAsync(log, 10);
|
await SeedPartWarehouseAsync(log, 10);
|
||||||
await SeedPartAsync(log, 100, 10);
|
await SeedPartAsync(log, 100, 300);
|
||||||
await SeedPartAssemblyAsync(log, 5);
|
await SeedPartAssemblyAsync(log, 5);
|
||||||
await SeedPurchaseOrderAsync(log, 30);
|
await SeedPurchaseOrderAsync(log, 30);
|
||||||
await SeedWorkOrderAsync(log, 30);
|
await SeedWorkOrderAsync(log, 30);
|
||||||
@@ -360,7 +360,7 @@ namespace AyaNova.Util
|
|||||||
await SeedLoanLoanUnitAsync(log, 20);
|
await SeedLoanLoanUnitAsync(log, 20);
|
||||||
await SeedCustomerServiceRequestAsync(log, 20);
|
await SeedCustomerServiceRequestAsync(log, 20);
|
||||||
await SeedPartWarehouseAsync(log, 20);
|
await SeedPartWarehouseAsync(log, 20);
|
||||||
await SeedPartAsync(log, 200, 15);
|
await SeedPartAsync(log, 200, 600);
|
||||||
await SeedPartAssemblyAsync(log, 5);
|
await SeedPartAssemblyAsync(log, 5);
|
||||||
await SeedPurchaseOrderAsync(log, 50);
|
await SeedPurchaseOrderAsync(log, 50);
|
||||||
await SeedWorkOrderAsync(log, 60);
|
await SeedWorkOrderAsync(log, 60);
|
||||||
@@ -426,7 +426,7 @@ namespace AyaNova.Util
|
|||||||
await SeedLoanLoanUnitAsync(log, 100);
|
await SeedLoanLoanUnitAsync(log, 100);
|
||||||
await SeedCustomerServiceRequestAsync(log, 100);
|
await SeedCustomerServiceRequestAsync(log, 100);
|
||||||
await SeedPartWarehouseAsync(log, 100);
|
await SeedPartWarehouseAsync(log, 100);
|
||||||
await SeedPartAsync(log, 1000, 1000);
|
await SeedPartAsync(log, 1000, 3000);
|
||||||
await SeedPartAssemblyAsync(log, 25);
|
await SeedPartAssemblyAsync(log, 25);
|
||||||
await SeedPurchaseOrderAsync(log, 250);
|
await SeedPurchaseOrderAsync(log, 250);
|
||||||
await SeedWorkOrderAsync(log, 300);
|
await SeedWorkOrderAsync(log, 300);
|
||||||
@@ -2246,7 +2246,7 @@ namespace AyaNova.Util
|
|||||||
//////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////
|
||||||
//PART
|
//PART
|
||||||
//
|
//
|
||||||
public async Task SeedPartAsync(ILogger log, int count, int maxQuantity)
|
public async Task SeedPartAsync(ILogger log, int count, int openingStockLevel)
|
||||||
{
|
{
|
||||||
|
|
||||||
//for testing purposes make a quarter (approx) of parts that are lower than restock level
|
//for testing purposes make a quarter (approx) of parts that are lower than restock level
|
||||||
@@ -2293,13 +2293,13 @@ namespace AyaNova.Util
|
|||||||
throw new System.Exception(err);
|
throw new System.Exception(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
int OpeningInventoryLevel = Fake.Random.Number(1, maxQuantity);
|
int OpeningInventoryLevel = openingStockLevel;// Fake.Random.Number(1, openingStockLevel);
|
||||||
|
|
||||||
PartInventoryBiz PartInventoryBizNess = PartInventoryBiz.GetBiz(ct);
|
PartInventoryBiz PartInventoryBizNess = PartInventoryBiz.GetBiz(ct);
|
||||||
// 25% chance it has serial numbers
|
// 12% chance it has serial numbers
|
||||||
if (Fake.Random.Number(0, 4) == 1)
|
if (Fake.Random.Number(1, 8) == 5)
|
||||||
{
|
{
|
||||||
var serialStart = Fake.Finance.Account(5).ToString();
|
var serialStart = Fake.Finance.Account(10).ToString();
|
||||||
|
|
||||||
for (int y = 0; y < OpeningInventoryLevel; y++)
|
for (int y = 0; y < OpeningInventoryLevel; y++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user