mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 09:33:13 +00:00
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:
parent
b072d1fa2d
commit
7ef7205681
1 changed files with 1 additions and 0 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue