srp admin controller update

This commit is contained in:
2020-03-03 21:30:14 -06:00
parent 5a03fc639b
commit 1723fc7258
2 changed files with 3 additions and 2 deletions

View File

@@ -104,7 +104,9 @@ class SRPAdminController extends Controller
'id' => 'required',
'approved' => 'required',
'paid_value' => 'required',
]);
//Get the paid value from the form
$paidValue = str_replace(',', '', $request->paid_value);
//If the notes are not null update like this.

View File

@@ -49,8 +49,7 @@
{{ $row['fleet_type'] }}
</td>
<td>
{{ number_format($row['actual_srp'], 2, ".", ",") }}
{{ Form::hidden('paid_value', $row['actual_srp'], ['class' => 'form-control']) }}
{{ Form::text('paid_value', number_format($row['actual_srp'], 2, ".", ","), ['class' => 'form-control']) }}
</td>
<td>
{{ Form::textarea('notes', null, ['class' => 'form-control', 'id' => 'notes', 'rows' => 2, 'cols' => 15, 'style' => 'resize:none']) }}