|
@@ -124,6 +124,19 @@ namespace Comal.Classes
|
|
|
{
|
|
|
return new Filter<StockMovementBatch>(x => x.Type).IsEqualTo(StockMovementBatchType.Stocktake);
|
|
|
}
|
|
|
+
|
|
|
+ public override Columns<StockMovementBatch> DefineColumns()
|
|
|
+ {
|
|
|
+ return base.DefineColumns()
|
|
|
+ .Add(x => x.Employee.Name)
|
|
|
+ .Add(x => x.TimeStamp);
|
|
|
+ }
|
|
|
+
|
|
|
+ public override string FormatDisplay(CoreRow row)
|
|
|
+ {
|
|
|
+ return
|
|
|
+ $"{row.Get<StockMovementBatch, DateTime>(x => x.TimeStamp):dd MMM yy} - {row.Get<StockMovementBatch, string>(x => x.Employee.Name)}";
|
|
|
+ }
|
|
|
}
|
|
|
[LookupDefinition(typeof(StocktakeLookup))]
|
|
|
[EditorSequence("Stocktake",4)]
|