@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $this->codcliente = $t['codcliente']; |
| 45 | 45 | $this->idfactura = $t['idfactura']; |
| 46 | 46 | $this->procesado = $this->str2bool($t['procesado']); |
| 47 | - }else{ |
|
| 47 | + } else{ |
|
| 48 | 48 | $this->id = null; |
| 49 | 49 | $this->idprogramacion = null; |
| 50 | 50 | $this->id_edificacion = null; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $this->var2str($this->procesado).");"; |
| 88 | 88 | if($this->db->exec($sql)){ |
| 89 | 89 | return true; |
| 90 | - }else{ |
|
| 90 | + } else{ |
|
| 91 | 91 | return false; |
| 92 | 92 | } |
| 93 | 93 | } |
@@ -141,9 +141,9 @@ |
||
| 141 | 141 | $lista = array(); |
| 142 | 142 | if ($data) { |
| 143 | 143 | foreach ($data as $d) { |
| 144 | - $item = new residentes_facturacion_programada_edificaciones($d); |
|
| 145 | - $this->infoAdicional($item); |
|
| 146 | - $lista[] = $item; |
|
| 144 | + $item = new residentes_facturacion_programada_edificaciones($d); |
|
| 145 | + $this->infoAdicional($item); |
|
| 146 | + $lista[] = $item; |
|
| 147 | 147 | } |
| 148 | 148 | return $lista; |
| 149 | 149 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $this->codigo = $t['codigo']; |
| 45 | 45 | $this->tipo = $t['tipo']; |
| 46 | 46 | $this->descripcion = $t['descripcion']; |
| 47 | - }else{ |
|
| 47 | + } else{ |
|
| 48 | 48 | $this->codigo = null; |
| 49 | 49 | $this->tipo = null; |
| 50 | 50 | $this->descripcion = null; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $lista[] = new residentes_ayudas($d); |
| 75 | 75 | } |
| 76 | 76 | return $lista; |
| 77 | - }else{ |
|
| 77 | + } else{ |
|
| 78 | 78 | return false; |
| 79 | 79 | } |
| 80 | 80 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $lista[] = new residentes_ayudas($d); |
| 89 | 89 | } |
| 90 | 90 | return $lista; |
| 91 | - }else{ |
|
| 91 | + } else{ |
|
| 92 | 92 | return false; |
| 93 | 93 | } |
| 94 | 94 | } |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $data = $this->db->select($sql); |
| 99 | 99 | if($data){ |
| 100 | 100 | return new residentes_ayudas($data[0]); |
| 101 | - }else{ |
|
| 101 | + } else{ |
|
| 102 | 102 | return false; |
| 103 | 103 | } |
| 104 | 104 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | public function exists() { |
| 107 | 107 | if(is_null($this->codigo)){ |
| 108 | 108 | return false; |
| 109 | - }else{ |
|
| 109 | + } else{ |
|
| 110 | 110 | return $this->get($this->codigo,$this->tipo); |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -117,14 +117,14 @@ discard block |
||
| 117 | 117 | "descripcion = ".$this->var2str($this->descripcion)." ". |
| 118 | 118 | "WHERE codigo = ".$this->var2str($this->codigo)." AND tipo = ".$this->var2str($this->tipo).";"; |
| 119 | 119 | return $this->db->exec($sql); |
| 120 | - }else{ |
|
| 120 | + } else{ |
|
| 121 | 121 | $sql = "INSERT INTO ".$this->table_name." (codigo, tipo, descripcion) VALUES (". |
| 122 | 122 | $this->var2str($this->codigo).", ". |
| 123 | 123 | $this->var2str($this->tipo).", ". |
| 124 | 124 | $this->var2str($this->descripcion).");"; |
| 125 | 125 | if($this->db->exec($sql)){ |
| 126 | 126 | return $this->db->lastval(); |
| 127 | - }else{ |
|
| 127 | + } else{ |
|
| 128 | 128 | return false; |
| 129 | 129 | } |
| 130 | 130 | } |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | 'page_to' => __CLASS__, |
| 127 | 127 | 'type' => 'head', |
| 128 | 128 | 'text' => '<script src="' . |
| 129 | - FS_PATH . |
|
| 129 | + FS_PATH . |
|
| 130 | 130 | 'plugins/residentes/view/js/jsPDF/plugins/split_text_to_size.min.js" ' . |
| 131 | 131 | 'type="text/javascript"></script>', |
| 132 | 132 | 'params' => '' |
@@ -311,7 +311,7 @@ |
||
| 311 | 311 | $listaReferencias = $this->filter_request_array('referencia'); |
| 312 | 312 | foreach ($listaReferencias as $referencia) { |
| 313 | 313 | $sql = "SELECT count(referencia) as facturado from lineasfacturascli where referencia = '".$referencia."' ". |
| 314 | - " AND idfactura IN (select idfactura from facturascli WHERE codcliente = '".$codcliente."');"; |
|
| 314 | + " AND idfactura IN (select idfactura from facturascli WHERE codcliente = '".$codcliente."');"; |
|
| 315 | 315 | $data = $this->db->select($sql); |
| 316 | 316 | if (!$data[0]['facturado']) { |
| 317 | 317 | $listaResidentes[$codcliente][] = $referencia; |
@@ -444,9 +444,9 @@ |
||
| 444 | 444 | echo json_encode($hijos, JSON_THROW_ON_ERROR); |
| 445 | 445 | } |
| 446 | 446 | |
| 447 | - /** |
|
| 448 | - * funcion para guardar los codigos de las edificaciones base Manzana, Zona, Grupo, Edificio, etc |
|
| 449 | - */ |
|
| 447 | + /** |
|
| 448 | + * funcion para guardar los codigos de las edificaciones base Manzana, Zona, Grupo, Edificio, etc |
|
| 449 | + */ |
|
| 450 | 450 | public function agregar($objeto) |
| 451 | 451 | { |
| 452 | 452 | $inicio = \filter_input(INPUT_POST, 'inicio'); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $this->id = $t['id']; |
| 45 | 45 | $this->descripcion = $t['descripcion']; |
| 46 | 46 | $this->padre = $t['padre']; |
| 47 | - }else{ |
|
| 47 | + } else{ |
|
| 48 | 48 | $this->id = null; |
| 49 | 49 | $this->descripcion = null; |
| 50 | 50 | $this->padre = null; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | $data = $this->db->select($sql); |
| 76 | 76 | if($data){ |
| 77 | 77 | return new residentes_edificaciones_tipo($data[0]); |
| 78 | - }else{ |
|
| 78 | + } else{ |
|
| 79 | 79 | return false; |
| 80 | 80 | } |
| 81 | 81 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $lista[] = new residentes_edificaciones_tipo($d); |
| 97 | 97 | } |
| 98 | 98 | return $lista; |
| 99 | - }else{ |
|
| 99 | + } else{ |
|
| 100 | 100 | return false; |
| 101 | 101 | } |
| 102 | 102 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | public function exists() { |
| 105 | 105 | if(is_null($this->id)){ |
| 106 | 106 | return false; |
| 107 | - }else{ |
|
| 107 | + } else{ |
|
| 108 | 108 | return $this->get($this->id); |
| 109 | 109 | } |
| 110 | 110 | } |
@@ -116,13 +116,13 @@ discard block |
||
| 116 | 116 | "padre = ".$this->intval($this->padre)." ". |
| 117 | 117 | "WHERE id = ".$this->intval($this->id).";"; |
| 118 | 118 | return $this->db->exec($sql); |
| 119 | - }else{ |
|
| 119 | + } else{ |
|
| 120 | 120 | $sql = "INSERT INTO ".$this->table_name." (descripcion, padre) VALUES (". |
| 121 | 121 | $this->var2str($this->descripcion).", ". |
| 122 | 122 | $this->intval($this->padre).");"; |
| 123 | 123 | if($this->db->exec($sql)){ |
| 124 | 124 | return $this->db->lastval(); |
| 125 | - }else{ |
|
| 125 | + } else{ |
|
| 126 | 126 | return false; |
| 127 | 127 | } |
| 128 | 128 | } |
@@ -192,8 +192,8 @@ |
||
| 192 | 192 | public function all_ocupados() |
| 193 | 193 | { |
| 194 | 194 | $sql = "SELECT re.*, c.nombre FROM ".$this->table_name." as re, clientes as c ". |
| 195 | - " WHERE ocupado = TRUE and re.codcliente != '' and re.codcliente = c.codcliente ". |
|
| 196 | - " ORDER BY re.codigo_interno, re.numero"; |
|
| 195 | + " WHERE ocupado = TRUE and re.codcliente != '' and re.codcliente = c.codcliente ". |
|
| 196 | + " ORDER BY re.codigo_interno, re.numero"; |
|
| 197 | 197 | $data = $this->db->select($sql); |
| 198 | 198 | return $this->listaInfo($data); |
| 199 | 199 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $this->ocupado = $this->str2bool($t['ocupado']); |
| 110 | 110 | $this->fecha_ocupacion = $t['fecha_ocupacion']; |
| 111 | 111 | $this->fecha_disponibilidad = $t['fecha_disponibilidad']; |
| 112 | - }else{ |
|
| 112 | + } else{ |
|
| 113 | 113 | $this->id = null; |
| 114 | 114 | $this->iddireccion = 0; |
| 115 | 115 | $this->id_edificacion = null; |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | $item->pertenencia = $this->pertenencia($item); |
| 207 | 207 | $this->info($item); |
| 208 | 208 | return $item; |
| 209 | - }else{ |
|
| 209 | + } else{ |
|
| 210 | 210 | return false; |
| 211 | 211 | } |
| 212 | 212 | } |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | 'page_to' => __CLASS__, |
| 127 | 127 | 'type' => 'head', |
| 128 | 128 | 'text' => '<script src="' . |
| 129 | - FS_PATH . |
|
| 129 | + FS_PATH . |
|
| 130 | 130 | 'plugins/residentes/view/js/jsPDF/plugins/split_text_to_size.min.js" ' . |
| 131 | 131 | 'type="text/javascript"></script>', |
| 132 | 132 | 'params' => '' |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | $lista[] = $item->info_adicional($item); |
| 217 | 217 | } |
| 218 | 218 | return $lista; |
| 219 | - }else{ |
|
| 219 | + } else{ |
|
| 220 | 220 | return false; |
| 221 | 221 | } |
| 222 | 222 | } |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | if($data){ |
| 236 | 236 | $item = new residentes_informacion($data[0]); |
| 237 | 237 | return $item->info_adicional($item); |
| 238 | - }else{ |
|
| 238 | + } else{ |
|
| 239 | 239 | return false; |
| 240 | 240 | } |
| 241 | 241 | } |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | $lista[] = $item->info_adicional($item); |
| 258 | 258 | } |
| 259 | 259 | return $lista; |
| 260 | - }else{ |
|
| 260 | + } else{ |
|
| 261 | 261 | return false; |
| 262 | 262 | } |
| 263 | 263 | } |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | public function exists() { |
| 266 | 266 | if(!$this->get($this->codcliente)){ |
| 267 | 267 | return false; |
| 268 | - }else{ |
|
| 268 | + } else{ |
|
| 269 | 269 | return $this->get($this->codcliente); |
| 270 | 270 | } |
| 271 | 271 | } |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | "vehiculos = ".$this->intval($this->vehiculos)." ". |
| 297 | 297 | "WHERE codcliente = ".$this->var2str($this->codcliente).";"; |
| 298 | 298 | return $this->db->exec($sql); |
| 299 | - }else{ |
|
| 299 | + } else{ |
|
| 300 | 300 | $sql = "INSERT INTO ".$this->table_name." (codcliente, codigo, ocupantes, ocupantes5anos, ocupantes12anos, ocupantes18anos, ocupantes30anos, ocupantes50anos, ocupantes70anos, ocupantes71anos, informacion_discapacidad, propietario, profesion, ocupacion, ca_nombres, ca_apellidos, ca_telefono, ca_email, ca_propietario, ca_parentesco, ca_parentesco_obs, vehiculos) VALUES (". |
| 301 | 301 | $this->var2str($this->codcliente).", ". |
| 302 | 302 | $this->var2str($this->codigo).", ". |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | $this->intval($this->vehiculos).");"; |
| 323 | 323 | if($this->db->exec($sql)){ |
| 324 | 324 | return true; |
| 325 | - }else{ |
|
| 325 | + } else{ |
|
| 326 | 326 | return false; |
| 327 | 327 | } |
| 328 | 328 | } |