From 97ea382d2398131c4375044e088bc20c9cb46bf5 Mon Sep 17 00:00:00 2001 From: elyambay Date: Thu, 31 Aug 2017 14:26:10 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20del=20c=C3=A1lculo=20para=20beneficios=20?= =?UTF-8?q?de=20Bancos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Detalle_encuesta.php | 6 +++--- resources/views/report/report.blade.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Detalle_encuesta.php b/app/Detalle_encuesta.php index c1e7dca..f5901ee 100644 --- a/app/Detalle_encuesta.php +++ b/app/Detalle_encuesta.php @@ -102,7 +102,7 @@ public function zona(){ public function getBeneficiosBancosAttribute(){ $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 + @@ -112,8 +112,8 @@ public function getBeneficiosBancosAttribute(){ $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)/12 + + $this->(monto_post_grado * ($this->cobertura_post_grado)/100)/ 24 + $this->monto_celular_corporativo + $this->monto_vivienda + $this->monto_colegiatura_hijos; diff --git a/resources/views/report/report.blade.php b/resources/views/report/report.blade.php index 08a3830..b49b01b 100644 --- a/resources/views/report/report.blade.php +++ b/resources/views/report/report.blade.php @@ -103,7 +103,7 @@ Conceptos Casos - Ocupantes + com Mínimo 25 Perc. Promedio @@ -331,7 +331,7 @@ function calculation(element){ }else{ $(divEfectivo).empty(); } - }else if(label == "Compensación Anual Total"){ + }else if(label == "Compensación Anual Total" || label == "Compensación Efectiva Anual Total"){ if(value > 0){ $(divCompensacion).html('
Compensación Anual
'); chart(promedio, per75, max, value, itemCompensacion);