Added maintained and reassignable to license listing

This commit is contained in:
snipe 2020-09-04 10:02:04 -07:00
parent 69d7000922
commit 5f5b80acae
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC
2 changed files with 16 additions and 0 deletions

View file

@ -36,6 +36,7 @@ class LicensesTransformer
'free_seats_count' => (int) $license->free_seats_count,
'license_name' => e($license->license_name),
'license_email' => e($license->license_email),
'reassignable' => ($license->reassignable == 1) ? true : false,
'maintained' => ($license->maintained == 1) ? true : false,
'supplier' => ($license->supplier) ? ['id' => (int) $license->supplier->id,'name'=> e($license->supplier->name)] : null,
'category' => ($license->category) ? ['id' => (int) $license->category->id,'name'=> e($license->category->name)] : null,

View file

@ -98,6 +98,21 @@ class LicensePresenter extends Presenter
"title" => trans('general.purchase_date'),
'formatter' => 'dateDisplayFormatter'
], [
"field" => "maintained",
"searchable" => false,
"sortable" => true,
"visible" => false,
"title" => trans('admin/licenses/form.maintained'),
"formatter" => "trueFalseFormatter"
], [
"field" => "reassignable",
"searchable" => false,
"sortable" => true,
"visible" => false,
"title" => trans('admin/licenses/form.reassignable'),
"formatter" => "trueFalseFormatter"
],
[
"field" => "purchase_cost",
"searchable" => true,
"sortable" => true,