update list
This commit is contained in:
@@ -32,9 +32,11 @@ class ReportLogResource extends JsonResource
|
|||||||
$timeInsertBenefit = RequestLogBenefit::where('request_log_id', $this->id)->first();
|
$timeInsertBenefit = RequestLogBenefit::where('request_log_id', $this->id)->first();
|
||||||
|
|
||||||
if ($timeInsertBenefit){
|
if ($timeInsertBenefit){
|
||||||
$durationFinalGl = Helper::differenceTime($this->created_final_at,$timeInsertBenefit->created_at);
|
$created_final_at = $timeInsertBenefit->created_at;
|
||||||
|
$durationFinalGl = Helper::differenceTime($timeInsertBenefit->created_at, $this->approved_final_log_at);
|
||||||
} else {
|
} else {
|
||||||
$durationFinalGl = 0;
|
$durationFinalGl = 0;
|
||||||
|
$created_final_at = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
$durationGl = Helper::differenceTime($formattedDateTime, $this->submission_date);
|
$durationGl = Helper::differenceTime($formattedDateTime, $this->submission_date);
|
||||||
@@ -44,7 +46,7 @@ class ReportLogResource extends JsonResource
|
|||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'code' => $this->code,
|
'code' => $this->code,
|
||||||
'created_at' => $formattedDateTime,
|
'created_at' => $formattedDateTime,
|
||||||
'created_final_at' => $this->created_final_at,
|
'created_final_at' => $created_final_at,
|
||||||
'submission_date' => $this->submission_date,
|
'submission_date' => $this->submission_date,
|
||||||
'approved_by' => Helper::userName($this->approved_by),
|
'approved_by' => Helper::userName($this->approved_by),
|
||||||
'approved_final_log_at' => $this->approved_final_log_at,
|
'approved_final_log_at' => $this->approved_final_log_at,
|
||||||
@@ -59,7 +61,8 @@ class ReportLogResource extends JsonResource
|
|||||||
'payment_type_name' => $this->payment_type_name,
|
'payment_type_name' => $this->payment_type_name,
|
||||||
'duration_gl' => $durationGl,
|
'duration_gl' => $durationGl,
|
||||||
'duration_final_gl' => $this->final_log == 1 ? $durationFinalGl : '-',
|
'duration_final_gl' => $this->final_log == 1 ? $durationFinalGl : '-',
|
||||||
'files_by_type' => $filesGroupByType
|
'files_by_type' => $filesGroupByType,
|
||||||
|
'time_insert_benefit' => $filesGroupByType,
|
||||||
];
|
];
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
|||||||
@@ -416,10 +416,10 @@ export default function List() {
|
|||||||
isSort: false,
|
isSort: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'submission_date',
|
id: 'fgl_submission_date',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: 'FGL Submit Time',
|
label: 'FGL Submit Time',
|
||||||
isSort: true,
|
isSort: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'service_code',
|
id: 'service_code',
|
||||||
|
|||||||
Reference in New Issue
Block a user