srp admin dashboad fix

This commit is contained in:
2020-03-06 18:54:10 -06:00
parent 7f1da17750
commit 3de3e992f7
2 changed files with 3 additions and 5 deletions

View File

@@ -86,7 +86,7 @@ class SRPAdminController extends Controller
foreach($payouts as $p) {
if($r['ship_type'] == $p->code) {
$temp['actual_srp'] = $r['loss_value'] * ($p->payout / 100.00 );
$temp['payout'] = $p->payout;
$temp['payout_percentage'] = $p->payout;
$sum_actual += $temp['actual_srp'];
}
}
@@ -96,8 +96,6 @@ class SRPAdminController extends Controller
}
}
dd($requests);
$sum_actual = number_format($sum_actual, 2, '.', ',');
$sum_loss = number_format($sum_loss, 2, '.', ',');

View File

@@ -40,11 +40,11 @@
{{ number_format($row['loss_value'], 2, '.', ',') }}
</td>
<td><!-- Ship Type -->
{{ Form::select('ship_type', $viewShipTypes, $row['ship_type']) }}
{{ Form::select('ship_type', $viewShipTypes, $row['cost_code']) }}
{!! $row['cost_code'] !!}
</td>
<td><!-- Payout percentage -->
{{ $row['payout'] }}
{{ $row['payout_percentage'] }}
</td>
<td><!-- Fleet Type -->
{{ $row['fleet_type'] }}