Merge branch 'develop'
This commit is contained in:
commit
3acf5f76fe
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue