trabajando tabla tiradas para el editor

This commit is contained in:
Jaime Jiménez
2023-08-11 09:52:12 +02:00
parent 0c3485681c
commit 3b84839fc0
6 changed files with 78 additions and 52 deletions

View File

@ -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');
}
}