Sigh.
This commit is contained in:
parent
e77aae703b
commit
facf1d42f7
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ class Asset extends Depreciable
|
||||||
*/
|
*/
|
||||||
public function get_depreciation()
|
public function get_depreciation()
|
||||||
{
|
{
|
||||||
if ($this->model) {
|
if (($this->model) && ($this->model->depreciation)) {
|
||||||
return $this->model->depreciation;
|
return $this->model->depreciation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue