Include InternalWONumber in work order list search

- Search now matches against internal WO number, customer WO number,
  title, and location name/title
This commit is contained in:
Adam Moussa 2026-04-17 12:31:00 -04:00
parent b072d1fa2d
commit 7ef7205681

View file

@ -382,6 +382,7 @@ namespace Api.SeaHavenIndustries.Controllers
{
var s = search.ToLower();
query = query.Where(w =>
(w.InternalWONumber ?? "").ToLower().Contains(s) ||
(w.WorkerOrderNumber ?? "").ToLower().Contains(s) ||
(w.WorkerOrderTitle ?? "").ToLower().Contains(s) ||
(w.Locations.Title ?? "").ToLower().Contains(s) ||