FIX_SI_ENHANCEMENT_INPROGRESS_ISSUE : RV
This commit is contained in:
parent
cd87339514
commit
2816cfad0c
@ -3046,26 +3046,29 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
// dd($emp_policy_ids, $emp_details, $endorsement_details);
|
// dd($emp_policy_ids, $emp_details, $endorsement_details);
|
||||||
|
|
||||||
$this->employeePolicyModel->updateBatch($emp_policy_ids, 'id');
|
if ($file['insurer_or_tpa'] == 'insurer') {
|
||||||
|
|
||||||
// $this->employeePolicyModel->insertBatch($emp_details);
|
$this->employeePolicyModel->updateBatch($emp_policy_ids, 'id');
|
||||||
// $insertedIds = [];
|
|
||||||
// $startId = $db->insertID(); // Get the first inserted ID
|
|
||||||
|
|
||||||
// for ($i = 0; $i < count($emp_details); $i++) {
|
// $this->employeePolicyModel->insertBatch($emp_details);
|
||||||
// $insertedIds[] = $startId + $i;
|
// $insertedIds = [];
|
||||||
// }
|
// $startId = $db->insertID(); // Get the first inserted ID
|
||||||
|
|
||||||
$insertedIds = [];
|
// for ($i = 0; $i < count($emp_details); $i++) {
|
||||||
foreach ($emp_details as $emp) {
|
// $insertedIds[] = $startId + $i;
|
||||||
$insertedIds[] = $this->employeePolicyModel->insert($emp);
|
// }
|
||||||
|
|
||||||
|
$insertedIds = [];
|
||||||
|
foreach ($emp_details as $emp) {
|
||||||
|
$insertedIds[] = $this->employeePolicyModel->insert($emp);
|
||||||
|
}
|
||||||
|
|
||||||
|
// dd($insertedIds);
|
||||||
|
|
||||||
|
$this->employeePolicyModel->bulkUpdateForEndorsement($endorsement_details);
|
||||||
|
$this->storeEndorsementNumber($file_id, $endorsement_id, $enrollment_file_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
// dd($insertedIds);
|
|
||||||
|
|
||||||
$this->employeePolicyModel->bulkUpdateForEndorsement($endorsement_details);
|
|
||||||
$this->storeEndorsementNumber($file_id, $endorsement_id, $enrollment_file_id);
|
|
||||||
|
|
||||||
|
|
||||||
// Update batch file status and amount
|
// Update batch file status and amount
|
||||||
$this->batchFileModel->update($file_id, [
|
$this->batchFileModel->update($file_id, [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user