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