mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
Fixed #4444 - Added EOL back into asset lsiting and custom report
This commit is contained in:
parent
e490185533
commit
76fe2af0af
|
@ -31,6 +31,7 @@ class AssetsTransformer
|
||||||
'name'=> e($asset->model->name)
|
'name'=> e($asset->model->name)
|
||||||
] : null,
|
] : null,
|
||||||
'model_number' => (($asset->model) && ($asset->model->model_number)) ? e($asset->model->model_number) : 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) ? [
|
'status_label' => ($asset->assetstatus) ? [
|
||||||
'id' => (int) $asset->assetstatus->id,
|
'id' => (int) $asset->assetstatus->id,
|
||||||
'name'=> e($asset->present()->statusText),
|
'name'=> e($asset->present()->statusText),
|
||||||
|
|
|
@ -147,6 +147,13 @@ class AssetPresenter extends Presenter
|
||||||
"visible" => false,
|
"visible" => false,
|
||||||
"title" => trans('general.order_number'),
|
"title" => trans('general.order_number'),
|
||||||
'formatter' => "orderNumberObjFilterFormatter"
|
'formatter' => "orderNumberObjFilterFormatter"
|
||||||
|
], [
|
||||||
|
"field" => "eol",
|
||||||
|
"searchable" => false,
|
||||||
|
"sortable" => false,
|
||||||
|
"visible" => false,
|
||||||
|
"title" => trans('general.eol'),
|
||||||
|
"formatter" => "dateDisplayFormatter"
|
||||||
], [
|
], [
|
||||||
"field" => "warranty_months",
|
"field" => "warranty_months",
|
||||||
"searchable" => true,
|
"searchable" => true,
|
||||||
|
|
Loading…
Reference in a new issue