Преглед на файлове

Fixed filter on StockHolding grid to correctly check double thresholds (instead of ToStringing the thing).

Kenric Nugteren преди 1 година
родител
ревизия
afa7c131a8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      prs.desktop/Panels/Products/Locations/StockHoldingGrid.cs

+ 1 - 1
prs.desktop/Panels/Products/Locations/StockHoldingGrid.cs

@@ -558,7 +558,7 @@ namespace PRSDesktop
             // Hackety Hackety Hack Hack stupid doubles not totalling zero when they're supposed to
             var result = base.FilterRecord(row);
             if (result)
-                result = !row.Get<StockHolding, double>(x => x.Qty).ToString("F8").Equals("0.00000000");
+                result = Math.Abs(row.Get<StockHolding, double>(x => x.Qty)) >= 0.000001;//.ToString("F8").Equals("0.00000000");
             return result;
         }
     }