Merge branch 'staging' of https://dev.sismedika.online/febio/aso into staging
This commit is contained in:
@@ -146,7 +146,9 @@ class ClaimController extends Controller
|
|||||||
$affectedRows = DB::table('claim_requests')
|
$affectedRows = DB::table('claim_requests')
|
||||||
->where('code','=', $row['code'])
|
->where('code','=', $row['code'])
|
||||||
->where('claim_management','=', 1)
|
->where('claim_management','=', 1)
|
||||||
|
->where('status_claim_management.status', '=', 'received')
|
||||||
->update([
|
->update([
|
||||||
|
'status' => $row['qc'] == 'Y' ? 'approved' : 'declined',
|
||||||
'status_claim_management' => $row['qc'] == 'Y' ? 'approved' : 'declined',
|
'status_claim_management' => $row['qc'] == 'Y' ? 'approved' : 'declined',
|
||||||
'reason_decline' => $row['reason'] ? $row['reason'] : null,
|
'reason_decline' => $row['reason'] ? $row['reason'] : null,
|
||||||
'approval_by_claim_management' => auth()->user()->id,
|
'approval_by_claim_management' => auth()->user()->id,
|
||||||
|
|||||||
Reference in New Issue
Block a user