srp admin dashboad fix

This commit is contained in:
2020-03-06 18:51:14 -06:00
parent 282bffa140
commit 18500aa23f
2 changed files with 4 additions and 3 deletions

View File

@@ -79,13 +79,14 @@ class SRPAdminController extends Controller
foreach($fleetTypes as $f) {
if($r['fleet_type'] == $f->code) {
$temp['fleet_type'] = $f->description;
$temp['cost_code'] = $f->code;
}
}
//Calculate the recommended srp amount
foreach($payouts as $p) {
if($r['ship_type'] == $p->code) {
$temp['actual_srp'] = $r['loss_value'] * ($p->payout / 100.00 );
$temp['cost_code'] = $p->payout;
$temp['payout'] = $p->payout;
$sum_actual += $temp['actual_srp'];
}
}

View File

@@ -41,10 +41,10 @@
</td>
<td><!-- Ship Type -->
{{ Form::select('ship_type', $viewShipTypes, $row['ship_type']) }}
{!! $row['ship_type'] !!}
{!! $row['cost_code'] !!}
</td>
<td><!-- Payout percentage -->
{{ $row['cost_code'] }}
{{ $row['payout'] }}
</td>
<td><!-- Fleet Type -->
{{ $row['fleet_type'] }}