Merge remote-tracking branch 'origin/staging' into origin/production

This commit is contained in:
Linksehat Staging Server
2024-02-01 10:54:43 +07:00

View File

@@ -40,7 +40,7 @@ class ReportLogResource extends JsonResource
$created_final_at = null;
}
$durationGl = Helper::differenceTime($formattedDateTime, $this->submission_date);
$durationGl = Helper::differenceTime($formattedDateTime, $this->approved_at);
$approveByFgl = '-';
if ($this->import_system) {
$approveByFgl = 'Import By Excel';
@@ -55,8 +55,8 @@ class ReportLogResource extends JsonResource
'code' => $this->code,
'created_at' => $formattedDateTime,
'created_final_at' => $created_final_at,
'submission_date' => $this->approved_at ? $this->approved_at : null,
'approved_by' => Helper::userName($this->approved_by),
'submission_date' => $this->approved_at,
'approved_by' => $this->approved_by ? Helper::userName($this->approved_by) : '-',
'approved_final_log_at' => $this->approved_final_log_at,
'approved_final_log_by' => $approveByFgl,
'service_name' => $this->service ? $this->service->name : '',