FIX_LIVE_ISSUE : RV
This commit is contained in:
parent
3a8d09ce34
commit
898508781d
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user