From 7ef720568180d615df7cf87a0a8e36791f854a96 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Fri, 17 Apr 2026 12:31:00 -0400 Subject: [PATCH] Include InternalWONumber in work order list search - Search now matches against internal WO number, customer WO number, title, and location name/title --- Api.SeaHavenIndustries/Controllers/WorkOrderController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Api.SeaHavenIndustries/Controllers/WorkOrderController.cs b/Api.SeaHavenIndustries/Controllers/WorkOrderController.cs index 9de9b5f..f61177c 100644 --- a/Api.SeaHavenIndustries/Controllers/WorkOrderController.cs +++ b/Api.SeaHavenIndustries/Controllers/WorkOrderController.cs @@ -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) ||