ソースを参照

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;
         }
     }