App & Web Development
Custom Windows desktop software, websites and web apps, built around the way your team actually works.
// Flag anything that needs reordering before it runs out
public IEnumerable<StockItem> NeedsReorder()
{
return _db.Stock
.Where(i => i.OnHand <= i.ReorderLevel
|| i.ExpiresWithin(days: 30))
.OrderBy(i => i.OnHand)
.ToList();
}