FIX_ISSUE
This commit is contained in:
parent
b709fb449d
commit
e2cc55c25c
@ -2457,6 +2457,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$result = $clientController->view_Deposit($insurerId, $requestFrom = 'rest', $param = ['client_id' => $clientId, 'cd_ac_pk' => $cdAccountPrimaryKey]);
|
$result = $clientController->view_Deposit($insurerId, $requestFrom = 'rest', $param = ['client_id' => $clientId, 'cd_ac_pk' => $cdAccountPrimaryKey]);
|
||||||
|
|
||||||
$data['insurer_name'] = $result['insurerName']->name;
|
$data['insurer_name'] = $result['insurerName']->name;
|
||||||
|
$data['insurer_short_name'] = $result['insurerName']->short_name;
|
||||||
$data['account_number'] = $result['insurerName']->cd_master_account_no;
|
$data['account_number'] = $result['insurerName']->cd_master_account_no;
|
||||||
$data['total_deposit'] = $result['deposiamount']->total_credit;
|
$data['total_deposit'] = $result['deposiamount']->total_credit;
|
||||||
$data['total_consumed'] = $result['deposiamount']->total_withdraw;
|
$data['total_consumed'] = $result['deposiamount']->total_withdraw;
|
||||||
|
|||||||
@ -3096,7 +3096,7 @@ class TicketController extends BaseController
|
|||||||
|
|
||||||
public function claimDumpUpload()
|
public function claimDumpUpload()
|
||||||
{
|
{
|
||||||
$data['tab_name'] = "Claim Dupm Upload";
|
$data['tab_name'] = "Claim Dump Upload";
|
||||||
$data['page_name'] = "Claims";
|
$data['page_name'] = "Claims";
|
||||||
$data['tpa_list'] = $this->TPAModel->where('is_active', 1)->findAll();
|
$data['tpa_list'] = $this->TPAModel->where('is_active', 1)->findAll();
|
||||||
|
|
||||||
|
|||||||
@ -1844,23 +1844,6 @@ class TicketServiceController extends BaseController
|
|||||||
|
|
||||||
// --------------------------------------------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
public function tpaClaimImporter($params)
|
|
||||||
{
|
|
||||||
$file_id = $params['file_id'];
|
|
||||||
$tpa_claims_files_data = $this->claimDumpFileModel->where('id', $file_id)->first();
|
|
||||||
|
|
||||||
|
|
||||||
if($this->vidal_primary_key == $tpa_claims_files_data['tpa_id']){
|
|
||||||
|
|
||||||
}else if($this->icici_primary_key == $tpa_claims_files_data['tpa_id']){
|
|
||||||
|
|
||||||
}else{
|
|
||||||
$this->myLogger->logme('error', 'No TPA found to import');
|
|
||||||
return ['status' => false, 'message' => 'No TPA found to import'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function tpaClaimDumpImporter($params)
|
public function tpaClaimDumpImporter($params)
|
||||||
{
|
{
|
||||||
$file_id = $params['file_id'] ?? null; // Move outside try to ensure catch can see it
|
$file_id = $params['file_id'] ?? null; // Move outside try to ensure catch can see it
|
||||||
@ -1980,45 +1963,6 @@ class TicketServiceController extends BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tpaClaimDumpToTicketMasterImportBatchSeperater($params)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
$file_id = $params['file_id'] ?? null;
|
|
||||||
$fileData = $this->claimDumpFileModel->where('id', $file_id)->first();
|
|
||||||
|
|
||||||
if (!$fileData) {
|
|
||||||
return ['status' => false, 'message' => 'Invalid file ID No file data found to import'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$handler = TpaClaimsImportFactory::make($fileData['tpa_id'] ?? 0);
|
|
||||||
$result = $handler->runTicketMasterInsert($params);
|
|
||||||
|
|
||||||
return $result;
|
|
||||||
|
|
||||||
} catch (\Throwable $th) {
|
|
||||||
|
|
||||||
$this->myLogger->logme("error", 'TICKET_MASTER_CLAIM_IMPORTER_JOB :' .($th->getMessage() . ' --- ' . $th->getLine() . '----' . $th->getTraceAsString()));
|
|
||||||
|
|
||||||
$errorData = [
|
|
||||||
'message' => $th->getMessage(),
|
|
||||||
'file' => $th->getFile(),
|
|
||||||
'line' => $th->getLine(),
|
|
||||||
'code' => $th->getCode(),
|
|
||||||
'trace' => $th->getTraceAsString(),
|
|
||||||
'trace_array' => $th->getTrace(), // full array version (optional)
|
|
||||||
'function' => $th->getTrace()[0]['function'] ?? null,
|
|
||||||
'class' => $th->getTrace()[0]['class'] ?? null,
|
|
||||||
];
|
|
||||||
|
|
||||||
return [
|
|
||||||
'status' => false,
|
|
||||||
'message' => $th->getMessage(),
|
|
||||||
'error_data' => json_encode($errorData, JSON_PRETTY_PRINT)
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function readExcelBySheetName(string $filePath, string $sheetName): array
|
public function readExcelBySheetName(string $filePath, string $sheetName): array
|
||||||
{
|
{
|
||||||
if (!file_exists($filePath)) {
|
if (!file_exists($filePath)) {
|
||||||
|
|||||||
@ -64,6 +64,7 @@ class InsurerModel extends Model
|
|||||||
->select('
|
->select('
|
||||||
insurers.id,
|
insurers.id,
|
||||||
insurers.name,
|
insurers.name,
|
||||||
|
insurers.short_name,
|
||||||
cd_master.cd_ac_no AS cd_master_account_no
|
cd_master.cd_ac_no AS cd_master_account_no
|
||||||
')
|
')
|
||||||
->join('insurers', 'insurers.id = client_policy.insurer_id')
|
->join('insurers', 'insurers.id = client_policy.insurer_id')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user