update client
This commit is contained in:
@@ -63,7 +63,7 @@ class ClaimRequestController extends Controller
|
|||||||
serviceCode: $request->service_code[$key],
|
serviceCode: $request->service_code[$key],
|
||||||
);
|
);
|
||||||
|
|
||||||
ClaimRequested::dispatch($newClaimRequest);
|
// ClaimRequested::dispatch($newClaimRequest);
|
||||||
|
|
||||||
// Log History
|
// Log History
|
||||||
$newClaimRequest->histories()->create([
|
$newClaimRequest->histories()->create([
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ use Str;
|
|||||||
|
|
||||||
class ClaimRequestService{
|
class ClaimRequestService{
|
||||||
|
|
||||||
public static function storeClaimRequest($row = null, $code, $member, $paymentType, $serviceCode, $requestLogID, $submissionDate = null, $status = 'requested', $organization_code = null)
|
public static function storeClaimRequest($row = null, $code, $member, $paymentType, $serviceCode, $requestLogID = null, $submissionDate = null, $status = 'requested', $organization_code = null)
|
||||||
{
|
{
|
||||||
// try {
|
// try {
|
||||||
$organization = False;
|
$organization = False;
|
||||||
@@ -38,7 +38,7 @@ class ClaimRequestService{
|
|||||||
|
|
||||||
$claimRequestData = [
|
$claimRequestData = [
|
||||||
'code' => $code,
|
'code' => $code,
|
||||||
'request_log_id' => $requestLogID,
|
'request_log_id' => $requestLogID ?? 0,
|
||||||
'member_id' => $member->id,
|
'member_id' => $member->id,
|
||||||
'submission_date' => $submissionDate ?? now(),
|
'submission_date' => $submissionDate ?? now(),
|
||||||
'status' => $status,
|
'status' => $status,
|
||||||
@@ -60,6 +60,8 @@ class ClaimRequestService{
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static function storeClaimManagement($row, $member, $claim_request_id){
|
public static function storeClaimManagement($row, $member, $claim_request_id){
|
||||||
try {
|
try {
|
||||||
$organization = 0;
|
$organization = 0;
|
||||||
@@ -100,7 +102,7 @@ class ClaimRequestService{
|
|||||||
DB::commit();
|
DB::commit();
|
||||||
return $claimManagement;
|
return $claimManagement;
|
||||||
|
|
||||||
|
|
||||||
} catch (\Exception $error) {
|
} catch (\Exception $error) {
|
||||||
DB::rollBack();
|
DB::rollBack();
|
||||||
|
|
||||||
@@ -144,18 +146,18 @@ class ClaimRequestService{
|
|||||||
$paymentType = $row['claim_type'];
|
$paymentType = $row['claim_type'];
|
||||||
$status = $row['status'];
|
$status = $row['status'];
|
||||||
$serviceCode = $row['coverage_type'];
|
$serviceCode = $row['coverage_type'];
|
||||||
|
|
||||||
$newClaimRequest = $this->storeClaimRequest(
|
$newClaimRequest = $this->storeClaimRequest(
|
||||||
row: $row,
|
row: $row,
|
||||||
code: $code,
|
code: $code,
|
||||||
member: $member,
|
member: $member,
|
||||||
paymentType: $paymentType,
|
paymentType: $paymentType,
|
||||||
serviceCode: $serviceCode,
|
serviceCode: $serviceCode,
|
||||||
submissionDate: $submissionDate,
|
submissionDate: $submissionDate,
|
||||||
status: $status,
|
status: $status,
|
||||||
organization_code: $organization_id
|
organization_code: $organization_id
|
||||||
);
|
);
|
||||||
|
|
||||||
$newlyCreatedID = $newClaimRequest->id;
|
$newlyCreatedID = $newClaimRequest->id;
|
||||||
|
|
||||||
$newClaimManangement = $this->storeClaimManagement($row, $member, $newlyCreatedID);
|
$newClaimManangement = $this->storeClaimManagement($row, $member, $newlyCreatedID);
|
||||||
@@ -177,4 +179,4 @@ class ClaimRequestService{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user