mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
haciendo el borrar!
This commit is contained in:
@ -14,14 +14,14 @@ class ClientePreciosModel extends \App\Models\BaseModel
|
||||
protected $useAutoIncrement = true;
|
||||
|
||||
const SORTABLE = [
|
||||
0 => "t1.tipo",
|
||||
1 => "t1.tipo_maquina",
|
||||
2 => "t1.tipo_impresion",
|
||||
3 => "t1.tiempo_min",
|
||||
4 => "t1.tiempo_max",
|
||||
5 => "t1.precio_hora",
|
||||
6 => "t1.margen",
|
||||
|
||||
0 => "t1.id",
|
||||
1 => "t1.tipo",
|
||||
2 => "t1.tipo_maquina",
|
||||
3 => "t1.tipo_impresion",
|
||||
4 => "t1.tiempo_min",
|
||||
5 => "t1.tiempo_max",
|
||||
6 => "t1.precio_hora",
|
||||
7 => "t1.margen",
|
||||
];
|
||||
|
||||
protected $allowedFields = [
|
||||
@ -277,10 +277,10 @@ class ClientePreciosModel extends \App\Models\BaseModel
|
||||
else {
|
||||
$builder->groupStart();
|
||||
foreach ($search as $col_search) {
|
||||
if ($col_search[0] > 2)
|
||||
$builder->like(self::SORTABLE[$col_search[0]], $col_search[2]);
|
||||
else
|
||||
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]);
|
||||
}
|
||||
$builder->groupEnd();
|
||||
return $builder;
|
||||
|
||||
Reference in New Issue
Block a user