From ed251779009be9400a8a67e1138c88f62a964125 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Mon, 4 Apr 2022 17:27:34 +0530 Subject: [PATCH] Google sheet 4 : ps --- .../controllers/Data_Dump_Controller.php | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/api/application/controllers/Data_Dump_Controller.php b/api/application/controllers/Data_Dump_Controller.php index bb089022..5143a3cf 100644 --- a/api/application/controllers/Data_Dump_Controller.php +++ b/api/application/controllers/Data_Dump_Controller.php @@ -185,7 +185,8 @@ class Data_Dump_Controller extends REST_Controller { } if($i==4 && $GSdata[$i] != ""){ $modifiedData['mobileNumber'] = $GSdata[$i]; log_message("G-Sheet For PD Step 2.4 (Fourth Cell mobilenumber) GSheet data : ".$GSdata[$i]); - //." Modify : ".$modifiedData." PD :".$pd_details);} + //." Modify : ".$modifiedData." PD :".$pd_details); + } if($i==5 && $GSdata[$i] != ""){//address section. $NormalParts = explode(',', $GSdata[$i]); $stateAndPincode = end($NormalParts); @@ -344,10 +345,10 @@ class Data_Dump_Controller extends REST_Controller { if(empty($pd_id)) { throw new Exception('Error On Inserting TRIGGER details'); } - } catch (Exception $e) { + } catch (Exception $e) { log_message("G-Sheet For PD Step 4 (PDID gotten) ERR : ".$e->getMessage()); var_dump($e->getMessage()); - } + } // $pd_id = 3073; @@ -368,11 +369,11 @@ class Data_Dump_Controller extends REST_Controller { if(empty($co_applicant_id)) { throw new Exception('Error On Inserting Applicant details'); } - } catch (Exception $e) { + } catch (Exception $e) { //alert the user. log_message("G-Sheet For PD Step 5.1 (applicant pkid) ERR : ".$e->getMessage()); var_dump($e->getMessage()); - } + } } @@ -390,10 +391,10 @@ class Data_Dump_Controller extends REST_Controller { if(empty($address_id)) { throw new Exception('Error On Inserting Adresses details'); } - } catch (Exception $e) { + } catch (Exception $e) { log_message("G-Sheet For PD Step 6 (Addresses) ERR : ".$e->getMessage()); var_dump($e->getMessage()); - } + } $triggertbl_records = array('fk_primary_address_id'=>$address_id,'fk_address_id'=>$address_id); try { @@ -402,13 +403,12 @@ class Data_Dump_Controller extends REST_Controller { if(empty($this->Data_Dump_Model->updateRecords($triggertbl_records,PDTRIGGER,array('pd_id' => $pd_id)))) { throw new Exception('Error On updated Adresses Details in trigger table'); } - } catch (Exception $e) { + } catch (Exception $e) { //alert the user. log_message("G-Sheet For PD Step 7 (updateAddresses in trigger) ERR : ".$e->getMessage()); var_dump($e->getMessage()); - } - } - } + } + } // print_r($pd_details); // print_r($modifiedData); // print_r($addresses); @@ -416,4 +416,4 @@ class Data_Dump_Controller extends REST_Controller { // die(); return $pd_id; } - } +} \ No newline at end of file