Skip to content

Commit

Permalink
Fix del cálculo para beneficios de Bancos
Browse files Browse the repository at this point in the history
  • Loading branch information
elyambay committed Aug 31, 2017
1 parent 993b1db commit 97ea382
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/Detalle_encuesta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions resources/views/report/report.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<tr>
<th>Conceptos</th>
<th>Casos</th>
<th>Ocupantes</th>
<th>com</th>
<th>Mínimo</th>
<th>25 Perc.</th>
<th>Promedio</th>
Expand Down Expand Up @@ -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('<h5>Compensación Anual</h5><canvas id="'+divChartCompensacion+'"></canvas>');
chart(promedio, per75, max, value, itemCompensacion);
Expand Down

0 comments on commit 97ea382

Please sign in to comment.