arreglados bugs en plantillas cliente

This commit is contained in:
2024-12-07 12:00:47 +01:00
parent 1b09d6c7a9
commit 39ca7e83eb
6 changed files with 267 additions and 91 deletions

View File

@ -160,7 +160,7 @@ class ClientePlantillaPreciosLineasModel extends \App\Models\BaseModel
else {
$builder->groupStart();
foreach ($search as $col_search) {
if ($col_search[1] > 0 && $col_search[0] < 4)
if ($col_search[0] > 0 && $col_search[0] < 4)
$builder->where(self::SORTABLE[$col_search[0]], $col_search[2]);
else
$builder->like(self::SORTABLE[$col_search[0]], $col_search[2]);