case 4035

This commit is contained in:
2021-11-24 18:08:52 +00:00
parent d3638e4fc2
commit c9029c2786
5 changed files with 37 additions and 25 deletions

View File

@@ -3041,19 +3041,19 @@ namespace AyaNova.Util
};
woItem.Parts.Add(woItemPart);
//PARTREQUESTS
if (Fake.Random.Bool())//50%
{
var woItemPartRequest = new WorkOrderItemPartRequest()
{
// //PARTREQUESTS
// if (Fake.Random.Bool())//50%
// {
// var woItemPartRequest = new WorkOrderItemPartRequest()
// {
Quantity = 1,
PartId = Fake.Random.Long(1, TotalSeededParts),
PartWarehouseId = 1,
PurchaseOrderItemId = Fake.Random.Long(1, TotalSeededPurchaseOrders)//yes it's POITEM vs po but each po has at least one item so this will work
};
woItem.PartRequests.Add(woItemPartRequest);
}
// Quantity = 1,
// PartId = Fake.Random.Long(1, TotalSeededParts),
// PartWarehouseId = 1,
// PurchaseOrderItemId = Fake.Random.Long(1, TotalSeededPurchaseOrders)//yes it's POITEM vs po but each po has at least one item so this will work
// };
// woItem.PartRequests.Add(woItemPartRequest);
// }
//LOANERS