Add Patch Filtro Document
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m53s

This commit is contained in:
Leandro Hernan Rojas 2025-04-05 17:57:18 -03:00
parent 674e3cc694
commit 78b0b1c52a

View File

@ -63,10 +63,9 @@ namespace Models.Repositories
_logger.LogDebug("VALOR RECIBIDO DE 'document': {document}", document);
if (!string.IsNullOrWhiteSpace(document) && document != "?")
{
var loweredDoc = document.ToLower();
query = query.Where(c =>
c.PhSCustomerDocuments.Any(a =>
EF.Functions.Like(a.DocumentNumber.ToLower(), $"%{loweredDoc}%")));
EF.Functions.Like(a.DocumentNumber, $"%{document}%")));
}
//if (!string.IsNullOrWhiteSpace(email))
//{