From 898508781d18e92d4b0df6f834f77b7a81467844 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Thu, 14 Aug 2025 09:34:48 +0530 Subject: [PATCH] FIX_LIVE_ISSUE : RV --- .../PolicyTransactionController.php | 3 +++ app/Views/client_policy.php | 25 ++++++++++--------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/app/Controllers/PolicyTransactionController.php b/app/Controllers/PolicyTransactionController.php index dddedd54..d6bc5167 100644 --- a/app/Controllers/PolicyTransactionController.php +++ b/app/Controllers/PolicyTransactionController.php @@ -35,6 +35,7 @@ use App\Models\COShareStmtDetailsModel; use App\Models\BdsPlacementModel; use Kint\Kint; use App\Helpers\MailHelper; +use App\Helpers\ExcelSanitizeHelper; use Exception; class PolicyTransactionController extends BaseController @@ -2270,6 +2271,7 @@ class PolicyTransactionController extends BaseController // dd($highestRowAndColumn); $excel_data = $sheet->rangeToArray('A1:' . $highestRowAndColumn['column'] . $highestRowAndColumn['row']); unset($excel_data[0]); + $excel_data = ExcelSanitizeHelper::sanitizeArrayData($excel_data); // Kint::dump($excel_data);die(); //get no of line items and update in DB $line_items = 0; @@ -2384,6 +2386,7 @@ class PolicyTransactionController extends BaseController // dd($highestRowAndColumn); $excel_data = $sheet->rangeToArray('A1:' . $highestRowAndColumn['column'] . $highestRowAndColumn['row']); unset($excel_data[0]); + $excel_data = ExcelSanitizeHelper::sanitizeArrayData($excel_data); // dd($excel_data); //get no of line items and update in DB $line_items = count($excel_data); diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php index 3e5d15f0..8dfdcce8 100755 --- a/app/Views/client_policy.php +++ b/app/Views/client_policy.php @@ -2242,18 +2242,19 @@ // Start the interval function startAutoSubmit(attrId) { - if (!submitInterval) { - submitInterval = setInterval(function() { - if(attrId == "GMC"){ - autoSaveGmcTerms(); - }else if(attrId == "GPA"){ - autoSaveGpaTerms(); - }else if(attrId == "OTHERS"){ - autoSaveOtherTerms(); - } - }, 20000); - console.log("Auto-submit started."); - } + // if (!submitInterval) { + // submitInterval = setInterval(function() { + // if(attrId == "GMC"){ + // autoSaveGmcTerms(); + // }else if(attrId == "GPA"){ + // autoSaveGpaTerms(); + // }else if(attrId == "OTHERS"){ + // autoSaveOtherTerms(); + // } + // }, 20000); + // console.log("Auto-submit started."); + // } + console.log("Auto-submit Disabled."); } // Stop the interval