mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
formulario direcciones presupuestos
This commit is contained in:
@ -126,4 +126,17 @@ class ClienteDireccionesModel extends \App\Models\GoBaseModel
|
||||
->orLike("t1.telefono", $search)
|
||||
->groupEnd();
|
||||
}
|
||||
|
||||
public function getMenuDirecciones($cliente_id=-1){
|
||||
|
||||
$builder =
|
||||
$this->db
|
||||
->table($this->table . " t1")
|
||||
->select(
|
||||
"t1.id AS id, t1.alias AS text")
|
||||
->where("t1.cliente_id", $cliente_id);
|
||||
|
||||
return $builder->get()->getResultArray();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user