From b3998cf9b196dbafb460ca3c89dacdabd5be8cde Mon Sep 17 00:00:00 2001 From: "sanjeev.p" Date: Sat, 14 Aug 2021 15:28:47 +0530 Subject: [PATCH] key stakeholders Fixes : ps --- api/application/controllers/SMC_Credit_PD_Controller.php | 1 + api/application/helpers/readexceldata_helper.php | 2 +- api/application/models/Data_Dump_Model.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/application/controllers/SMC_Credit_PD_Controller.php b/api/application/controllers/SMC_Credit_PD_Controller.php index 86342dbe..acfdcdf9 100644 --- a/api/application/controllers/SMC_Credit_PD_Controller.php +++ b/api/application/controllers/SMC_Credit_PD_Controller.php @@ -1379,6 +1379,7 @@ public function filterSalesPDList_post() { // $filename = 'C:\Users\Venba\Documents\Test Demo17_dev_LFMP.xls'; // $filename = 'C:\Users\Venba\Downloads\Test Demo17_dev.xlsx'; // echo $filename;die(); + // $filename = '/home/venba/Downloads/Sample_CET_Upload4.xls'; if(!file_exists($filename)) { diff --git a/api/application/helpers/readexceldata_helper.php b/api/application/helpers/readexceldata_helper.php index 9454af3e..259a33f2 100644 --- a/api/application/helpers/readexceldata_helper.php +++ b/api/application/helpers/readexceldata_helper.php @@ -103,7 +103,7 @@ class readexceldata if($product_abbr == "LFMP"){ // ### LFMP Started Here. $LFMP_company_data = SELF::getCompanyListForSMCList($file); $companycount = (count($LFMP_company_data)>0) ? count($LFMP_company_data) : 1; - for($i = 0;$i <= $companycount; $i++) + for($i = 0;$i < $companycount; $i++) { $j =0 ; //### temp inx (bcoz maran asked) foreach ($return_data['key_stakeholders'] as $key => $value) diff --git a/api/application/models/Data_Dump_Model.php b/api/application/models/Data_Dump_Model.php index 0bc681e5..beaaee5a 100755 --- a/api/application/models/Data_Dump_Model.php +++ b/api/application/models/Data_Dump_Model.php @@ -109,7 +109,7 @@ class Data_Dump_Model extends SPARQ_Model { $this->db->order_by('PDFORMDETAILSJSON.pd_form_detail_json_id','desc'); $this->db->limit(5); $result = $this->db->get()->result_array(); - echo count($result);print_r($result);print_r($this->db->last_query());die(); + // echo count($result);print_r($result);print_r($this->db->last_query());die(); return $result; }