diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 56fd9fc605..e220f4940d 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -231,7 +231,9 @@ class Asset extends Depreciable */ public function get_depreciation() { - return $this->model->depreciation; + if ($this->model) { + return $this->model->depreciation; + } } /**