mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Sigh.
This commit is contained in:
parent
e77aae703b
commit
facf1d42f7
|
@ -231,7 +231,7 @@ class Asset extends Depreciable
|
|||
*/
|
||||
public function get_depreciation()
|
||||
{
|
||||
if ($this->model) {
|
||||
if (($this->model) && ($this->model->depreciation)) {
|
||||
return $this->model->depreciation;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue