Updated availableForCheckout() method to be clearer

This commit is contained in:
snipe 2017-10-28 02:31:54 -07:00
parent df430a2263
commit 3064b3f80e

View file

@ -127,11 +127,10 @@ class Asset extends Depreciable
public function availableForCheckout()
{
return (
empty($this->assigned_to) &&
$this->assetstatus->deployable == 1 &&
empty($this->deleted_at)
);
if ((empty($this->assigned_to)) && (empty($this->deleted_at)) && ($this->assetstatus->deployable == 1)) {
return true;
}
return false;
}
/**