terminado a falta del resumen

This commit is contained in:
jaimejimenezortega
2024-05-21 20:43:47 +02:00
parent 77c284c9b4
commit 44c5595173
11 changed files with 38841 additions and 130 deletions

View File

@ -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){