Browse Source

Added an all filter for the jobs

Kenric Nugteren 2 years ago
parent
commit
9e0ac62d2c
1 changed files with 4 additions and 5 deletions
  1. 4 5
      prs.desktop/Panels/StockSummary/StockSummaryGrid.cs

+ 4 - 5
prs.desktop/Panels/StockSummary/StockSummaryGrid.cs

@@ -1,15 +1,11 @@
 using System;
-using System.Collections.Generic;
 using System.Linq;
 using System.Reflection;
-using System.Windows;
 using Comal.Classes;
 using InABox.Clients;
 using InABox.Core;
 using InABox.DynamicGrid;
-using PRSDesktop.WidgetGroups;
 using Syncfusion.Data.Extensions;
-using static org.sqlite.Function;
 
 namespace PRSDesktop
 {
@@ -73,7 +69,6 @@ namespace PRSDesktop
 
             var links = aggregate.Links;
 
-
             foreach (var (pLeft, pStockSummary) in aggregate.Links)
             {
                 if(string.Equals(pStockSummary, CoreUtils.GetFullPropertyName<StockSummary, Guid>(x => x.Job.ID, ".")))
@@ -87,6 +82,10 @@ namespace PRSDesktop
                     {
                         jobFilter.InList(JobIDs);
                     }
+                    else
+                    {
+                        jobFilter.All();
+                    }
                 }
                 else if (string.Equals(pStockSummary, CoreUtils.GetFullPropertyName<StockSummary, Guid>(x => x.Style.ID, ".")))
                 {