mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
Fuckery.
This commit is contained in:
parent
cf8feb37e1
commit
4be8ae7f3d
|
@ -231,8 +231,10 @@ class Asset extends Depreciable
|
||||||
*/
|
*/
|
||||||
public function get_depreciation()
|
public function get_depreciation()
|
||||||
{
|
{
|
||||||
|
if ($this->model) {
|
||||||
return $this->model->depreciation;
|
return $this->model->depreciation;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get uploads for this asset
|
* Get uploads for this asset
|
||||||
|
|
Loading…
Reference in a new issue