renamed unassignable to reassignable_seat

This commit is contained in:
Godfrey M
2025-01-16 12:19:59 -08:00
parent 3f3f2bfc61
commit 52bf0faaa5
8 changed files with 10 additions and 10 deletions
@@ -119,7 +119,7 @@ class LicenseSeatsController extends Controller
// nothing to update
return response()->json(Helper::formatStandardApiResponse('success', $licenseSeat, trans('admin/licenses/message.update.success')));
}
if( $touched && $licenseSeat->unassignable) {
if( $touched && $licenseSeat->reassignable_seat) {
return response()->json(Helper::formatStandardApiResponse('error', $licenseSeat, trans('admin/licenses/message.checkout.unavailable')));
}
// the logging functions expect only one "target". if both asset and user are present in the request,
@@ -140,7 +140,7 @@ class LicenseSeatsController extends Controller
if ($is_checkin) {
$licenseSeat->logCheckin($target, $request->input('note'));
if(!$licenseSeat->license->reassignable){
$licenseSeat->unassignable = true;
$licenseSeat->reassignable_seat = true;
$licenseSeat->save();
}
@@ -96,7 +96,7 @@ class LicenseCheckinController extends Controller
$licenseSeat->asset_id = null;
$licenseSeat->notes = $request->input('notes');
if (! $licenseSeat->license->reassignable) {
$licenseSeat->unassignable = true;
$licenseSeat->reassignable_seat = true;
$licenseSeat->notes .= "\n" . trans('admin/licenses/message.checkin.not_reassignable') . '.';
}