mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
fixed typo, fixed variable name
This commit is contained in:
parent
f47a2b10c0
commit
db11fc35f4
|
@ -139,7 +139,7 @@ class LicenseSeatsController extends Controller
|
||||||
|
|
||||||
if ($is_checkin) {
|
if ($is_checkin) {
|
||||||
$licenseSeat->logCheckin($target, $request->input('note'));
|
$licenseSeat->logCheckin($target, $request->input('note'));
|
||||||
if(!$licenseSeat->license->ressignable){
|
if(!$licenseSeat->license->reassignable){
|
||||||
$licenseSeat->dead = 1;
|
$licenseSeat->dead = 1;
|
||||||
$licenseSeat->save();
|
$licenseSeat->save();
|
||||||
}
|
}
|
||||||
|
|
|
@ -653,7 +653,7 @@ class License extends Depreciable
|
||||||
{
|
{
|
||||||
return $this->licenseseats()
|
return $this->licenseseats()
|
||||||
->whereNull('deleted_at')
|
->whereNull('deleted_at')
|
||||||
->where('unavailable', '=', 0)
|
->where('dead', '=', 0)
|
||||||
->where(function ($query) {
|
->where(function ($query) {
|
||||||
$query->whereNull('assigned_to')
|
$query->whereNull('assigned_to')
|
||||||
->whereNull('asset_id');
|
->whereNull('asset_id');
|
||||||
|
|
Loading…
Reference in a new issue