Google sheet 4 : ps
This commit is contained in:
parent
265118f2c2
commit
ed25177900
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user