Add Patch Filtro Document
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m53s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m53s
This commit is contained in:
parent
674e3cc694
commit
78b0b1c52a
@ -63,10 +63,9 @@ namespace Models.Repositories
|
|||||||
_logger.LogDebug("VALOR RECIBIDO DE 'document': {document}", document);
|
_logger.LogDebug("VALOR RECIBIDO DE 'document': {document}", document);
|
||||||
if (!string.IsNullOrWhiteSpace(document) && document != "?")
|
if (!string.IsNullOrWhiteSpace(document) && document != "?")
|
||||||
{
|
{
|
||||||
var loweredDoc = document.ToLower();
|
|
||||||
query = query.Where(c =>
|
query = query.Where(c =>
|
||||||
c.PhSCustomerDocuments.Any(a =>
|
c.PhSCustomerDocuments.Any(a =>
|
||||||
EF.Functions.Like(a.DocumentNumber.ToLower(), $"%{loweredDoc}%")));
|
EF.Functions.Like(a.DocumentNumber, $"%{document}%")));
|
||||||
}
|
}
|
||||||
//if (!string.IsNullOrWhiteSpace(email))
|
//if (!string.IsNullOrWhiteSpace(email))
|
||||||
//{
|
//{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user