mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
terminado a falta del resumen
This commit is contained in:
@ -141,6 +141,25 @@ class ClienteDireccionesModel extends \App\Models\BaseModel
|
||||
|
||||
return $builder->get()->getResultObject();
|
||||
}
|
||||
|
||||
public function getIdForPresupuestoCliente($cliente_id = -1, $att = "", $email = "", $direccion = "", $cp = "", $pais_id = -1, $telefono = "")
|
||||
{
|
||||
$builder = $this->db
|
||||
->table($this->table . " t1")
|
||||
->select("t1.id AS id")
|
||||
->where("t1.cliente_id", $cliente_id)
|
||||
->where("t1.att", $att)
|
||||
->where("t1.email", $email)
|
||||
->where("t1.direccion", $direccion)
|
||||
->where("t1.cp", $cp)
|
||||
->where("t1.pais_id", $pais_id)
|
||||
->where("t1.telefono", $telefono)
|
||||
->limit(1);
|
||||
|
||||
|
||||
return $builder->get()->getResultObject();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function getMenuDirecciones($cliente_id=-1){
|
||||
|
||||
Reference in New Issue
Block a user