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 App\Models\BdsPlacementModel;
use Kint\Kint; use Kint\Kint;
use App\Helpers\MailHelper; use App\Helpers\MailHelper;
use App\Helpers\ExcelSanitizeHelper;
use Exception; use Exception;
class PolicyTransactionController extends BaseController class PolicyTransactionController extends BaseController
@ -2270,6 +2271,7 @@ class PolicyTransactionController extends BaseController
// dd($highestRowAndColumn); // dd($highestRowAndColumn);
$excel_data = $sheet->rangeToArray('A1:' . $highestRowAndColumn['column'] . $highestRowAndColumn['row']); $excel_data = $sheet->rangeToArray('A1:' . $highestRowAndColumn['column'] . $highestRowAndColumn['row']);
unset($excel_data[0]); unset($excel_data[0]);
$excel_data = ExcelSanitizeHelper::sanitizeArrayData($excel_data);
// Kint::dump($excel_data);die(); // Kint::dump($excel_data);die();
//get no of line items and update in DB //get no of line items and update in DB
$line_items = 0; $line_items = 0;
@ -2384,6 +2386,7 @@ class PolicyTransactionController extends BaseController
// dd($highestRowAndColumn); // dd($highestRowAndColumn);
$excel_data = $sheet->rangeToArray('A1:' . $highestRowAndColumn['column'] . $highestRowAndColumn['row']); $excel_data = $sheet->rangeToArray('A1:' . $highestRowAndColumn['column'] . $highestRowAndColumn['row']);
unset($excel_data[0]); unset($excel_data[0]);
$excel_data = ExcelSanitizeHelper::sanitizeArrayData($excel_data);
// dd($excel_data); // dd($excel_data);
//get no of line items and update in DB //get no of line items and update in DB
$line_items = count($excel_data); $line_items = count($excel_data);

View File

@ -2242,18 +2242,19 @@
// Start the interval // Start the interval
function startAutoSubmit(attrId) { function startAutoSubmit(attrId) {
if (!submitInterval) { // if (!submitInterval) {
submitInterval = setInterval(function() { // submitInterval = setInterval(function() {
if(attrId == "GMC"){ // if(attrId == "GMC"){
autoSaveGmcTerms(); // autoSaveGmcTerms();
}else if(attrId == "GPA"){ // }else if(attrId == "GPA"){
autoSaveGpaTerms(); // autoSaveGpaTerms();
}else if(attrId == "OTHERS"){ // }else if(attrId == "OTHERS"){
autoSaveOtherTerms(); // autoSaveOtherTerms();
} // }
}, 20000); // }, 20000);
console.log("Auto-submit started."); // console.log("Auto-submit started.");
} // }
console.log("Auto-submit Disabled.");
} }
// Stop the interval // Stop the interval