tambah status cancel
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user