FIX_ISSUE

This commit is contained in:
VENKATESHWARAN 2026-01-29 17:50:27 +05:30
parent 2f4b1347c7
commit 01f8b251ec
5 changed files with 31 additions and 188 deletions

View File

@ -6703,16 +6703,16 @@ class ClientController extends AdminController
// 'file_name' => "deletion_enhancement_test_file.xlsx", // 'file_name' => "deletion_enhancement_test_file.xlsx",
// ]; // ];
// $batch_data = [ $batch_data = [
// 'client_id' => 12, 'client_id' => 12,
// 'client_policy_id' => 8063, 'client_policy_id' => 8063,
// 'client_branch_id' => 1, 'client_branch_id' => 1,
// 'insurer_or_tpa' => "insurer", 'insurer_or_tpa' => "insurer",
// // 'insurer_or_tpa' => "tpa", // 'insurer_or_tpa' => "tpa",
// 'event_type' => "inception", 'event_type' => "inception",
// 'file_name' => "si_enhancement_test_file.xlsx", 'file_name' => "si_enhancement_test_file.xlsx",
// 'actions' => "export", 'actions' => "export",
// ]; ];
// $batch_data['insurer_or_tpa'] = 'insurer'; // $batch_data['insurer_or_tpa'] = 'insurer';
// $batch_data['insurer_or_tpa'] = 'tpa'; // $batch_data['insurer_or_tpa'] = 'tpa';
@ -6773,13 +6773,15 @@ class ClientController extends AdminController
// $totals = $totals + $item->total; // $totals = $totals + $item->total;
// } // }
// clear_cd_balance_session();
// $data = [ // $data = [
// session()->get('cd_balance'), // 'cd_balance' => session()->get('cd_balance'),
// session()->get('cd_amount'), // 'hr_data' => session()->get('hr_data'),
// session()->get('hr_data'), // 'cd_balance_info' => session()->get('cd_balance_info'),
// session()->has('cd_balance'),
// get_cd_balance() // get_cd_balance()
// ]; // ];
// dd($data); // dd($data);
// $result = $this->employeePolicyModel->getCorrectionEmployeesDataForExportExcel($batch_data); // $result = $this->employeePolicyModel->getCorrectionEmployeesDataForExportExcel($batch_data);
// dd(db_connect()->getLastQuery()); // dd(db_connect()->getLastQuery());

View File

@ -204,13 +204,14 @@ class EmpDataServiceController extends BaseController
$totals = $totals + $item->total; $totals = $totals + $item->total;
} }
$totals = round($totals, 2); $totals = round($totals);
//check CD amt insufficient only insurer, not tpa // DO NOT REMOVE THIS //check CD amt insufficient only insurer, not tpa // DO NOT REMOVE THIS
if($export_data['insurer_or_tpa'] == 'insurer') if($export_data['insurer_or_tpa'] == 'insurer')
{ {
if (!empty($cash_balance)) { if (!empty($cash_balance)) {
if ((int) $cash_balance['balance'] < (int) $totals) { clear_cd_balance_session();
if ((int) $cash_balance['balance'] == (int) $totals) {
$this->myLogger->logme('error', 'Inception export failed due to insufficient deposit amount.'); $this->myLogger->logme('error', 'Inception export failed due to insufficient deposit amount.');
$this->myLogger->logme('error', 'Inception export failed due to insufficient deposit amount. CASH BALANCE : {balance} and TOTAL AMOUNT : {total}', ['balance' => $cash_balance['balance'], 'total' => $totals]); $this->myLogger->logme('error', 'Inception export failed due to insufficient deposit amount. CASH BALANCE : {balance} and TOTAL AMOUNT : {total}', ['balance' => $cash_balance['balance'], 'total' => $totals]);
@ -224,8 +225,7 @@ class EmpDataServiceController extends BaseController
}else{ }else{
session()->set('cd_balance', true); session()->set('cd_balance', true);
session()->set('cd_amount', $cash_balance['balance']);
session()->set('excel_file_amt', $totals);
} }
} }
} }

View File

@ -4532,7 +4532,7 @@ class EmployeeController extends AdminController
'details' => $result 'details' => $result
]; ];
} catch (Exception $e) { } catch (\Exception $e) {
// 5. Catch network or system exceptions // 5. Catch network or system exceptions
$this->myLogger->logme('error', 'VISIT_OFFBOARD API Exception: ' . $e->getMessage()); $this->myLogger->logme('error', 'VISIT_OFFBOARD API Exception: ' . $e->getMessage());
return [ return [

View File

@ -1119,11 +1119,11 @@ if (!function_exists('clear_cd_balance_session')) {
{ {
$session = session(); $session = session();
$session->remove([ $session->remove('cd_balance');
'cd_balance', $session->remove('hr_data');
'hr_data', $session->remove('cd_balance_info');
'cd_balance_info'
]); log_message('error', 'clear_cd_balance_session clered');
} }
} }

View File

@ -7,7 +7,7 @@
<style> <style>
.demo-button { .demo-button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
color: white; color: white;
border: none; border: none;
padding: 16px 32px; padding: 16px 32px;
@ -150,7 +150,7 @@
} }
.toggle-switch input:checked + .toggle-slider { .toggle-switch input:checked + .toggle-slider {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: #02a8b5;
} }
.toggle-switch input:checked + .toggle-slider:before { .toggle-switch input:checked + .toggle-slider:before {
@ -215,7 +215,7 @@
} }
.hr-checkbox input:checked ~ .checkbox-custom { .hr-checkbox input:checked ~ .checkbox-custom {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: #02a8b5;
border-color: #667eea; border-color: #667eea;
} }
@ -275,19 +275,8 @@
letter-spacing: 0.3px; letter-spacing: 0.3px;
} }
.btn-cancel {
background: white;
color: var(--text-secondary);
border: 2px solid var(--border-color);
}
.btn-cancel:hover {
background: #f9fafb;
border-color: #d1d5db;
}
.btn-submit { .btn-submit {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
color: white; color: white;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
} }
@ -303,56 +292,6 @@
transform: none; transform: none;
} }
/* Alert Styling */
.custom-alert {
position: fixed;
top: 20px;
right: 20px;
background: white;
padding: 20px 24px;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
z-index: 2000;
max-width: 400px;
border-left: 4px solid var(--danger-color);
opacity: 0;
transform: translateX(400px);
transition: all 0.3s ease;
}
.custom-alert.show {
opacity: 1;
transform: translateX(0);
}
.alert-content {
display: flex;
align-items: flex-start;
gap: 12px;
}
.alert-icon {
font-size: 24px;
flex-shrink: 0;
}
.alert-text {
flex: 1;
}
.alert-title {
font-family: 'Manrope', sans-serif;
font-weight: 700;
color: var(--text-primary);
font-size: 16px;
margin-bottom: 4px;
}
.alert-message {
color: var(--text-secondary);
font-size: 14px;
}
/* Scrollbar Styling */ /* Scrollbar Styling */
.hr-list-section::-webkit-scrollbar { .hr-list-section::-webkit-scrollbar {
width: 8px; width: 8px;
@ -412,104 +351,6 @@
.hr-item:nth-child(4) { animation-delay: 0.2s; } .hr-item:nth-child(4) { animation-delay: 0.2s; }
.hr-item:nth-child(5) { animation-delay: 0.25s; } .hr-item:nth-child(5) { animation-delay: 0.25s; }
/* Confirmation Dialog */
.confirm-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.confirm-overlay.active {
opacity: 1;
visibility: visible;
}
.confirm-dialog {
background: white;
border-radius: 16px;
padding: 32px;
max-width: 420px;
width: 90%;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
transform: scale(0.9);
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.confirm-overlay.active .confirm-dialog {
transform: scale(1);
}
.confirm-icon {
font-size: 48px;
text-align: center;
margin-bottom: 16px;
}
.confirm-title {
font-family: 'Manrope', sans-serif;
font-size: 22px;
font-weight: 700;
color: var(--text-primary);
text-align: center;
margin-bottom: 12px;
}
.confirm-message {
font-size: 15px;
color: var(--text-secondary);
text-align: center;
margin-bottom: 28px;
line-height: 1.6;
}
.confirm-buttons {
display: flex;
gap: 12px;
}
.confirm-btn {
flex: 1;
padding: 14px 24px;
border: none;
border-radius: 10px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
font-family: 'Manrope', sans-serif;
transition: all 0.2s ease;
}
.confirm-btn-no {
background: white;
color: var(--text-secondary);
border: 2px solid var(--border-color);
}
.confirm-btn-no:hover {
background: #f9fafb;
border-color: #d1d5db;
}
.confirm-btn-yes {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
color: white;
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.confirm-btn-yes:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}
</style> </style>
<div class="tab-pane fade" id="KYC-DOC-tab"> <div class="tab-pane fade" id="KYC-DOC-tab">
@ -1393,7 +1234,7 @@
messageShown = false; // Reset message flag messageShown = false; // Reset message flag
submitInterval = setInterval(function() { submitInterval = setInterval(function() {
checkCDBalance(); checkCDBalance();
}, 5000); }, 10000);
console.log("Checking CD balance started..."); console.log("Checking CD balance started...");
} }
} }