bugs fix import claim

This commit is contained in:
2023-11-07 13:18:58 +07:00
parent c329df499f
commit 8908400d50

View File

@@ -76,13 +76,13 @@ class ClaimRequestService{
'member_id' => $member->id,
'currency' => 'IDR',
'plan_id' => $member->currentPlan->id,
'total_claim' => $row['tot_amt_insurred'],
'benefit_code' => $row['benefit_code'],
'benefit_desc' => $row['benefit_desc'],
'amount_incurred' => $row['tot_amt_insurred'],
'amount_approved' => $row['tot_amt_approved'],
'amount_not_approved' => $row['tot_amt_not_approved'],
'excess_paid' => $row['tot_excess_paid'],
'total_claim' => $row['tot_amt_insurred'] ? $row['tot_amt_insurred'] : 0,
'benefit_code' => $row['benefit_code'] ? $row['benefit_code'] : '-',
'benefit_desc' => $row['benefit_desc'] ? $row['benefit_desc'] : '-',
'amount_incurred' => $row['tot_amt_insurred'] ? $row['tot_amt_insurred'] : 0,
'amount_approved' => $row['tot_amt_approved'] ? $row['tot_amt_approved'] : 0,
'amount_not_approved' => $row['tot_amt_not_approved'] ? $row['tot_amt_not_approved'] :0,
'excess_paid' => $row['tot_excess_paid'] ? $row['tot_excess_paid'] : 0,
'claim_request_id' => $claim_request_id,
'organization_id' => $organization ? $organization->id : NULL,
'status' => 'requested'
@@ -168,15 +168,8 @@ class ClaimRequestService{
]);
$claim_request_data = $row;
dd($row);
// dd($claim_request_data['admission_date']);
$this->validatePlanRow($claim_request_data);
return $newClaimRequest;
} catch (\Exception $e) {
throw $e;