Skip to content

Commit ffba8bc

Browse files
authored
Merge pull request #436 from dbarzin/dev
add progress field
2 parents 07749f0 + a3540fc commit ffba8bc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/Exports/ActionsExport.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function headings(): array
2525
trans('cruds.action.fields.cause'),
2626
trans('cruds.action.fields.owners'),
2727
trans('cruds.action.fields.remediation'),
28+
trans('cruds.action.fields.progress'),
2829
trans('cruds.action.fields.status'),
2930
trans('cruds.action.fields.close_date'),
3031
trans('cruds.action.fields.justification'),
@@ -59,9 +60,10 @@ public function columnWidths(): array
5960
'G' => 50, // Cause
6061
'H' => 20, // Owners
6162
'I' => 50, // remediation
62-
'J' => 10, // status
63-
'K' => 10, // close_date
64-
'L' => 50, // justification
63+
'J' => 10, // progress
64+
'K' => 10, // status
65+
'L' => 10, // close_date
66+
'M' => 50, // justification
6567
];
6668
}
6769

@@ -78,6 +80,7 @@ public function map($action): array
7880
$action->cause,
7981
$action->owners()->implode('name', ', '),
8082
$action->remediation,
83+
$action->progress,
8184
$action->status === 1 ? trans('cruds.action.fields.status_open') : ($action->status === 2 ? trans('cruds.action.fields.status_closed') : ($action->status === 3 ? trans('cruds.action.fields.status_rejected') : '')),
8285
$action->close_date,
8386
$action->justification,

0 commit comments

Comments
 (0)