|
@@ -33,6 +33,7 @@ public class StockLocationGrid : DynamicDataGrid<StockLocation>
|
|
|
HiddenColumns.Add(x => x.StocktakeFrequency);
|
|
|
HiddenColumns.Add(x => x.LastStocktake);
|
|
|
HiddenColumns.Add(x => x.CurrentStocktake);
|
|
|
+ HiddenColumns.Add(x => x.Stocktake.ID);
|
|
|
HiddenColumns.Add(x => x.NextStocktake);
|
|
|
|
|
|
ActionColumns.Add(new DynamicImageColumn(StockTakeStatusImage) { ToolTip = StockTakeStatusToolTip, Position = DynamicActionColumnPosition.Start });
|
|
@@ -47,7 +48,7 @@ public class StockLocationGrid : DynamicDataGrid<StockLocation>
|
|
|
{
|
|
|
return row == null
|
|
|
? column.TextToolTip("Indicates the Stocktake status of this location")
|
|
|
- : !row.Get<StockLocation, DateTime>(x => x.CurrentStocktake).IsEmpty()
|
|
|
+ : !row.Get<StockLocation, DateTime>(x => x.CurrentStocktake).IsEmpty() || row.Get<StockLocation, Guid>(x => x.Stocktake.ID) != Guid.Empty
|
|
|
? column.TextToolTip("Stocktake in progress")
|
|
|
: !row.Get<StockLocation, DateTime>(x => x.NextStocktake).IsEmpty()
|
|
|
? column.TextToolTip(
|
|
@@ -59,7 +60,7 @@ public class StockLocationGrid : DynamicDataGrid<StockLocation>
|
|
|
{
|
|
|
return row == null
|
|
|
? _stocktakeheader
|
|
|
- : !row.Get<StockLocation, DateTime>(x => x.CurrentStocktake).IsEmpty()
|
|
|
+ : !row.Get<StockLocation, DateTime>(x => x.CurrentStocktake).IsEmpty() || row.Get<StockLocation, Guid>(x => x.Stocktake.ID) != Guid.Empty
|
|
|
? _stocktakeinprogress
|
|
|
: !row.Get<StockLocation, DateTime>(x => x.NextStocktake).IsEmpty()
|
|
|
? row.Get<StockLocation, DateTime>(x => x.NextStocktake).Date > DateTime.Today
|