Merge branch 'develop'
This commit is contained in:
commit
3acf5f76fe
1 changed files with 3 additions and 1 deletions
|
@ -231,7 +231,9 @@ class Asset extends Depreciable
|
||||||
*/
|
*/
|
||||||
public function get_depreciation()
|
public function get_depreciation()
|
||||||
{
|
{
|
||||||
return $this->model->depreciation;
|
if ($this->model) {
|
||||||
|
return $this->model->depreciation;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue