Added globle search in purchase invoices (title, UID)
This commit is contained in:
parent
5d8a5e0cc8
commit
3caf944c50
@ -232,6 +232,11 @@ namespace Marco.Pms.Services.Service
|
||||
query = query.Where(pid => projectIds.Contains(pid.ProjectId));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(searchString))
|
||||
{
|
||||
query = query.Where(pid => pid.Title.Contains(searchString) ||
|
||||
(pid.UIDPrefix + "/" + pid.UIDPostfix.ToString().PadLeft(5, '0')).Contains(searchString));
|
||||
}
|
||||
// Compute total count before paging
|
||||
var totalCount = await query.CountAsync(ct);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user