Fixed depreciation display on asset view

This commit is contained in:
snipe
2013-12-03 03:15:02 -05:00
parent e49420f62d
commit 1dc7fd1bdf
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ class Asset extends Elegant {
public function depreciation()
{
return $this->belongsTo('Depreciation','id');
return $this->model->belongsTo('Depreciation','depreciation_id');
}
public function model()
@@ -71,7 +71,6 @@ View Asset {{ $asset->asset_tag }} ::
{{ $asset->months_until_depreciated()->y }} years</div>
@endif
</div>