FIX_LIVE_ISSUE : RV

This commit is contained in:
VENKATESHWARAN 2025-08-14 09:34:48 +05:30
parent 3a8d09ce34
commit 898508781d
2 changed files with 16 additions and 12 deletions

View File

@ -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);

View File

@ -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