StockLocationStockTakeStatusConverter.cs 418 B

123456789101112131415
  1. using InABox.Core;
  2. using InABox.Mobile;
  3. namespace PRS.Mobile
  4. {
  5. public class StockLocationStockTakeStatusConverter : AbstractConverter<StockLocationShell, bool>
  6. {
  7. public bool Active { get; set; }
  8. protected override bool Convert(StockLocationShell? value, object? parameter = null)
  9. {
  10. return Active && value != null && !value.CurrentStocktake.IsEmpty();
  11. }
  12. }
  13. }