Update import

This commit is contained in:
ivan-sim
2024-03-06 11:14:45 +07:00
parent 39398d718b
commit 5bd2195081

View File

@@ -146,7 +146,9 @@ class ClaimController extends Controller
$affectedRows = DB::table('claim_requests')
->where('code','=', $row['code'])
->where('claim_management','=', 1)
->where('status_claim_management.status', '=', 'received')
->update([
'status' => $row['qc'] == 'Y' ? 'approved' : 'declined',
'status_claim_management' => $row['qc'] == 'Y' ? 'approved' : 'declined',
'reason_decline' => $row['reason'] ? $row['reason'] : null,
'approval_by_claim_management' => auth()->user()->id,