|
@@ -773,7 +773,12 @@ namespace PRSDesktop
|
|
|
.Add(x => x.Dimensions.Height)
|
|
|
.Add(x => x.Dimensions.Weight)
|
|
|
.Add(x => x.Dimensions.UnitSize))
|
|
|
- .ToObjects<ManufacturingPacketComponent>();
|
|
|
+ .ToObjects<ManufacturingPacketComponent>().ToList();
|
|
|
+ if (components.Count == 0)
|
|
|
+ {
|
|
|
+ MessageBox.Show("No items to create picking list; all selected components already have requisitions.");
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
var requisitionItems = new List<RequisitionItem>();
|
|
|
foreach(var component in components)
|
|
@@ -797,11 +802,6 @@ namespace PRSDesktop
|
|
|
|
|
|
requisitionItems.Add(requisitionItem);
|
|
|
}
|
|
|
- if(requisitionItems.Count == 0)
|
|
|
- {
|
|
|
- MessageBox.Show("No items to create picking list; all selected components already have requisitions.");
|
|
|
- return;
|
|
|
- }
|
|
|
|
|
|
var requisition = new Requisition
|
|
|
{
|