From efe328484a55312124b1ce75afc1b5a397589e9e Mon Sep 17 00:00:00 2001 From: elyambay Date: Thu, 31 Aug 2017 14:37:10 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20del=20c=C3=A1lculo=20para=20beneficios=20?= =?UTF-8?q?de=20Bancos=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Detalle_encuesta.php | 8 ++++---- app/Http/Controllers/ReporteController.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Detalle_encuesta.php b/app/Detalle_encuesta.php index 48a5557..ac5af4d 100644 --- a/app/Detalle_encuesta.php +++ b/app/Detalle_encuesta.php @@ -112,7 +112,7 @@ public function getBeneficiosBancosAttribute(){ $this->monto_km_recorrido + $this->monto_ayuda_escolar + $this->monto_comedor_interno + - $this->monto_curso_idioma * ($this->cobertura_curso_idioma/100)/12 + + $this->monto_curso_idioma * ($this->cobertura_curso_idioma/100) + $this->monto_post_grado * ($this->cobertura_post_grado/100)/ 24 + $this->monto_celular_corporativo + $this->monto_vivienda + @@ -123,7 +123,7 @@ public function getBeneficiosBancosAttribute(){ public function getBeneficiosNavierasAttribute(){ $beneficios = $this->refrigerio + - $this->costo_seguro_medico + + $this->costo_seguro_medico * ($this->cobertura_seguro_medico/100) + $this->costo_seguro_vida + //$this->costo_poliza_muerte_accidente + //$this->costo_poliza_muerte_natural + @@ -133,8 +133,8 @@ public function getBeneficiosNavierasAttribute(){ $this->monto_km_recorrido + $this->monto_ayuda_escolar + $this->monto_comedor_interno + - $this->monto_curso_idioma * $this->cobertura_curso_idioma + - $this->monto_post_grado / 24 + + $this->monto_curso_idioma * ($this->cobertura_curso_idioma/100) + + $this->monto_post_grado * ($this->cobertura_post_grado/100)/ 24 + $this->monto_celular_corporativo + $this->monto_vivienda + $this->monto_colegiatura_hijos; diff --git a/app/Http/Controllers/ReporteController.php b/app/Http/Controllers/ReporteController.php index 9a0f341..c2d343f 100644 --- a/app/Http/Controllers/ReporteController.php +++ b/app/Http/Controllers/ReporteController.php @@ -489,7 +489,7 @@ private function segmenter( &$collection, } $this->pusher( $collection, $countCasos, - "CompensaciĆ³n Efectiva Anual Total", + "CompensaciĆ³n Anual Total", $totalCompAnualMin, $totalCompAnualMax, $totalCompAnualProm,