This commit is contained in:
@@ -226,19 +226,19 @@ namespace AyaNova.Util
|
|||||||
await SeedUserAsync(log, 1, AuthorizationRoles.BizAdminFull | AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull | AuthorizationRoles.OpsAdminFull, UserType.Service);
|
await SeedUserAsync(log, 1, AuthorizationRoles.BizAdminFull | AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull | AuthorizationRoles.OpsAdminFull, UserType.Service);
|
||||||
//Generate one office person / secretary
|
//Generate one office person / secretary
|
||||||
await SeedUserAsync(log, 1, AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull | AuthorizationRoles.AccountingFull, UserType.NotService);
|
await SeedUserAsync(log, 1, AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull | AuthorizationRoles.AccountingFull, UserType.NotService);
|
||||||
await SeedWidgetAsync(log, 100);
|
await SeedWidgetAsync(log, 25);
|
||||||
await SeedCustomerAsync(log, 100);
|
await SeedCustomerAsync(log, 25);
|
||||||
await SeedHeadOfficeAsync(log, 10);
|
await SeedHeadOfficeAsync(log, 10);
|
||||||
await SeedVendorAsync(log, 25);
|
await SeedVendorAsync(log, 10);
|
||||||
await SeedProjectAsync(log, 25);
|
await SeedProjectAsync(log, 10);
|
||||||
await SeedServiceRateAsync(log, 5);
|
await SeedServiceRateAsync(log, 5);
|
||||||
await SeedTravelRateAsync(log, 3);
|
await SeedTravelRateAsync(log, 3);
|
||||||
await SeedUnitModelAsync(log, 10);
|
await SeedUnitModelAsync(log, 10);
|
||||||
await SeedUnitAsync(log, 500);//5 times the customers or 5 units per customer
|
await SeedUnitAsync(log, 20);//5 times the customers or 5 units per customer
|
||||||
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, 50);
|
await SeedPartAsync(log, 20);
|
||||||
await SeedPartAssemblyAsync(log, 5);
|
await SeedPartAssemblyAsync(log, 5);
|
||||||
await SeedPurchaseOrderAsync(log, 10);
|
await SeedPurchaseOrderAsync(log, 10);
|
||||||
|
|
||||||
@@ -1700,6 +1700,7 @@ namespace AyaNova.Util
|
|||||||
for (int x = 0; x < count; x++)
|
for (int x = 0; x < count; x++)
|
||||||
{
|
{
|
||||||
PurchaseOrder o = new PurchaseOrder();
|
PurchaseOrder o = new PurchaseOrder();
|
||||||
|
o.VendorId = Fake.Random.Long(1, TotalSeededVendors);
|
||||||
var poDate = Fake.Date.Between(seedStartWindow, seedEndWindow);
|
var poDate = Fake.Date.Between(seedStartWindow, seedEndWindow);
|
||||||
o.OrderedDate = poDate.ToUniversalTime();
|
o.OrderedDate = poDate.ToUniversalTime();
|
||||||
o.ExpectedReceiveDate = poDate.AddDays(5).ToUniversalTime();
|
o.ExpectedReceiveDate = poDate.AddDays(5).ToUniversalTime();
|
||||||
|
|||||||
Reference in New Issue
Block a user