Evaluate the radio input to update location only or default location too

This commit is contained in:
Ivan Nieto Vivanco 2023-07-06 10:46:21 -06:00
parent 743e852998
commit 9591442f1e

View file

@ -102,6 +102,10 @@ class AssetCheckinController extends Controller
if ($request->filled('location_id')) {
\Log::debug('NEW Location ID: '.$request->get('location_id'));
$asset->location_id = $request->get('location_id');
if ($request->get('update_default_location') == 0){
$asset->rtd_location_id = $request->get('location_id');
}
}
$checkin_at = date('Y-m-d H:i:s');