Updated availableForCheckout() method to be clearer
This commit is contained in:
parent
df430a2263
commit
3064b3f80e
1 changed files with 4 additions and 5 deletions
|
@ -127,11 +127,10 @@ class Asset extends Depreciable
|
||||||
|
|
||||||
public function availableForCheckout()
|
public function availableForCheckout()
|
||||||
{
|
{
|
||||||
return (
|
if ((empty($this->assigned_to)) && (empty($this->deleted_at)) && ($this->assetstatus->deployable == 1)) {
|
||||||
empty($this->assigned_to) &&
|
return true;
|
||||||
$this->assetstatus->deployable == 1 &&
|
}
|
||||||
empty($this->deleted_at)
|
return false;
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue