tambah status cancel

This commit is contained in:
2024-01-17 10:16:50 +07:00
parent 726058067e
commit 3e383dffcf
2 changed files with 11 additions and 2 deletions

View File

@@ -183,8 +183,14 @@ class RequestLogService
];
$code = $this->makeCode($row['code'], $data);
$status = $row['status_final_log'] == 'Y' ? 'approved' : 'requested';
if ($row['status_final_log'] == 'Y'){
$status = 'approved';
} else if ($row['status_final_log'] == 'C'){
$status = 'canceled';
} else {
$status = 'requested';
}
$service = Service::where('name', $row['service'])->first();
if ($service){
$serviceCode = $service->code;