mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando tabla tiradas para el editor
This commit is contained in:
@ -199,4 +199,15 @@ class ProveedorModel extends \App\Models\GoBaseModel
|
||||
->orLike("t4.nombre", $search)
|
||||
->groupEnd();
|
||||
}
|
||||
|
||||
public function getProvList(int $tipoId = -1){
|
||||
|
||||
$builder = $this->db
|
||||
->table($this->table . " t1")
|
||||
->select(
|
||||
"t1.id AS proveedor_id, t1.nombre AS proveedor")
|
||||
->where("tipo_id", $tipoId);
|
||||
|
||||
return $builder->getResult('array');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user