This commit is contained in:
@@ -1704,13 +1704,24 @@ namespace AyaNova.Util
|
||||
for (int x = 0; x < count; x++)
|
||||
{
|
||||
PurchaseOrder o = new PurchaseOrder();
|
||||
o.Notes = Fake.Lorem.Sentence();
|
||||
o.Tags = RandomTags();
|
||||
o.VendorId = Fake.Random.Long(1, 9);//this matches the range set in parts so that we get some vendor numbers being set
|
||||
var poDate = Fake.Date.Between(seedStartWindow, seedEndWindow);
|
||||
o.OrderedDate = poDate.ToUniversalTime();
|
||||
o.ExpectedReceiveDate = poDate.AddDays(5).ToUniversalTime();
|
||||
o.Status = PurchaseOrderStatus.ClosedFullReceived;
|
||||
o.Notes = Fake.Lorem.Sentence();
|
||||
o.Tags = RandomTags();
|
||||
o.ReferenceNumber = Fake.Finance.Account(6);
|
||||
o.VendorMemo = Fake.Lorem.Sentence();
|
||||
if (Fake.Random.Number(1, 10) == 5)
|
||||
{
|
||||
o.ProjectId = Fake.Random.Long(1, TotalSeededProjects);
|
||||
}
|
||||
|
||||
o.Text1 = Fake.Lorem.Sentence(1, 3);
|
||||
o.Text2 = Fake.Lorem.Sentence(1, 3);
|
||||
|
||||
|
||||
|
||||
List<long> partsAdded = new List<long>();
|
||||
int partCount = Fake.Random.Int(1, 5);
|
||||
|
||||
Reference in New Issue
Block a user