srp once again

This commit is contained in:
2020-03-08 16:49:49 -05:00
parent 5ad0f3448f
commit 3e854da56d

View File

@@ -145,14 +145,14 @@ class SRPAdminController extends Controller
'paid_by_id' => auth()->user()->character_id,
'paid_by_name' => auth()->user()->name,
'notes' => $request->notes,
'loos_value' => $totalLoss,
'paid_value' => $totalLoss,
]);
} else {
$srp = SRPShip::where(['id' => $request->id])->update([
'approved' => $request->approved,
'paid_by_id' => auth()->user()->character_id,
'paid_by_name' => auth()->user()->name,
'loss_value' => $totalLoss,
'paid_value' => $totalLoss,
]);
}