Skip to content

Commit

Permalink
Hotfix: Concepto Efectivo anual garantizado y mostrar en CA$
Browse files Browse the repository at this point in the history
  • Loading branch information
elyambay committed Oct 30, 2018
1 parent acd7139 commit 4b2568b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/Http/Controllers/ReporteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ private function cargaDetalle($item, &$itemArray){
$this->cargador($value, $itemArray, true);
$salarioEmpresa = intval(str_replace(".", "", $value["Empresa"]));
break;
case Lang::get('reportReport.concept_concept_annual_cash'):
case Lang::get('reportReport.concept_annual_cash'):
$this->cargador($value, $itemArray, false);
break;
case Lang::get('reportReport.variable_pay'):
Expand Down Expand Up @@ -1448,7 +1448,7 @@ private function segmenter( &$collection,
$segmento,
$dbCargo);

// Efectivo Total Anual
// Efectivo Anual Garantizado
$detalle = $detalle->map(function($item){
$item['efectivo_total_anual'] = $item['efectivo_anual_garantizado'] +
$item['plus_rendimiento']+
Expand All @@ -1474,7 +1474,7 @@ private function segmenter( &$collection,

$this->pusher( $collection,
$countCasos,
Lang::get('reportReport.concept_annual_cash_total'),
Lang::get('reportReport.concept_annual_cash'),
$efectivoTotalMin,
$efectivoTotalMax,
$efectivoTotalProm,
Expand Down Expand Up @@ -1668,7 +1668,7 @@ private function segmenter( &$collection,

$this->pusher( $collection,
$countCasos,
Lang::get('reportReport.concept_annual_cash_total'),
Lang::get('reportReport.concept_annual_cash'),
$efectivoMin,
$efectivoMax,
$efectivoProm,
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/en/reportReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"title_national" => "Local",
"title_international" => "International",
"chart_salary" => "Monthly Base Salary",
"chart_annual_cash" => "Annual Guaranted Cash",
"chart_annual_cash" => "Annual Guaranteed Cash",
"chart_total_comp" => "Annual Total Compensation",
"concept_salary" => "Monthly Base Salary",
"concept_annual_salary" => "Annual Base Salary",
Expand Down
7 changes: 6 additions & 1 deletion resources/views/report/report.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@
<input type="hidden" name="moneda" value="extranjera"/>
<input type="hidden" name="periodo" value="{{$periodo}}"/>
<button class="btn waves-effect waves-light lighten-1 red white-text" type="submit" name="submitFilter" id="submitFilter">
<i class="material-icons left">monetization_on</i>@lang('reportReport.button_currency_us')
@if ($dbEmpresa->id == 95)
<i class="material-icons left">monetization_on</i>Ver en CA$
@else
<i class="material-icons left">monetization_on</i>@lang('reportReport.button_currency_us')
@endif

</button>

@endif
Expand Down

0 comments on commit 4b2568b

Please sign in to comment.