Fixed #4444 - Added EOL back into asset lsiting and custom report

This commit is contained in:
snipe 2017-12-05 13:03:11 -08:00
parent e490185533
commit 76fe2af0af
2 changed files with 8 additions and 0 deletions

View file

@ -31,6 +31,7 @@ class AssetsTransformer
'name'=> e($asset->model->name)
] : null,
'model_number' => (($asset->model) && ($asset->model->model_number)) ? e($asset->model->model_number) : null,
'eol' => ($asset->purchase_date!='') ? Helper::getFormattedDateObject($asset->present()->eol_date(), 'date') : null ,
'status_label' => ($asset->assetstatus) ? [
'id' => (int) $asset->assetstatus->id,
'name'=> e($asset->present()->statusText),

View file

@ -147,6 +147,13 @@ class AssetPresenter extends Presenter
"visible" => false,
"title" => trans('general.order_number'),
'formatter' => "orderNumberObjFilterFormatter"
], [
"field" => "eol",
"searchable" => false,
"sortable" => false,
"visible" => false,
"title" => trans('general.eol'),
"formatter" => "dateDisplayFormatter"
], [
"field" => "warranty_months",
"searchable" => true,