update
This commit is contained in:
@@ -69,20 +69,21 @@ class ClaimRequestService{
|
|||||||
];
|
];
|
||||||
|
|
||||||
$claimRequest = ClaimRequest::updateOrCreate(['request_log_id' => $requestLogID],$claimRequestData);
|
$claimRequest = ClaimRequest::updateOrCreate(['request_log_id' => $requestLogID],$claimRequestData);
|
||||||
$benefitData = Benefit::where('code', $row['benefit_code'])->first();
|
if (count($row)>0){
|
||||||
$requestLogData = RequestLogBenefit::updateOrCreate(
|
$benefitData = Benefit::where('code', $row['benefit_code'])->first();
|
||||||
[
|
$requestLogData = RequestLogBenefit::updateOrCreate(
|
||||||
'request_log_id' => $requestLogID,
|
[
|
||||||
'benefit_id' => $benefitData->id,
|
'request_log_id' => $requestLogID,
|
||||||
],[
|
'benefit_id' => $benefitData->id,
|
||||||
'request_log_id' => $requestLogID,
|
],[
|
||||||
'benefit_id' => $benefitData->id,
|
'request_log_id' => $requestLogID,
|
||||||
'amount_incurred' => $row['amount_incurred'],
|
'benefit_id' => $benefitData->id,
|
||||||
'amount_approved' => $row['amount_apporve'],
|
'amount_incurred' => $row['amount_incurred'],
|
||||||
'amount_not_approved' => $row['amount_not_apporve'],
|
'amount_approved' => $row['amount_apporve'],
|
||||||
'excess_paid' => $row['excess_paid'],
|
'amount_not_approved' => $row['amount_not_apporve'],
|
||||||
]);
|
'excess_paid' => $row['excess_paid'],
|
||||||
|
]);
|
||||||
|
}
|
||||||
DB::commit();
|
DB::commit();
|
||||||
|
|
||||||
return $claimRequest;
|
return $claimRequest;
|
||||||
|
|||||||
Reference in New Issue
Block a user