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];
|
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]);
|
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.
|
if($i==5 && $GSdata[$i] != ""){//address section.
|
||||||
$NormalParts = explode(',', $GSdata[$i]);
|
$NormalParts = explode(',', $GSdata[$i]);
|
||||||
$stateAndPincode = end($NormalParts);
|
$stateAndPincode = end($NormalParts);
|
||||||
@ -344,10 +345,10 @@ class Data_Dump_Controller extends REST_Controller {
|
|||||||
if(empty($pd_id)) {
|
if(empty($pd_id)) {
|
||||||
throw new Exception('Error On Inserting TRIGGER details');
|
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());
|
log_message("G-Sheet For PD Step 4 (PDID gotten) ERR : ".$e->getMessage());
|
||||||
var_dump($e->getMessage());
|
var_dump($e->getMessage());
|
||||||
}
|
}
|
||||||
// $pd_id = 3073;
|
// $pd_id = 3073;
|
||||||
|
|
||||||
|
|
||||||
@ -368,11 +369,11 @@ class Data_Dump_Controller extends REST_Controller {
|
|||||||
if(empty($co_applicant_id)) {
|
if(empty($co_applicant_id)) {
|
||||||
throw new Exception('Error On Inserting Applicant details');
|
throw new Exception('Error On Inserting Applicant details');
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
//alert the user.
|
//alert the user.
|
||||||
log_message("G-Sheet For PD Step 5.1 (applicant pkid) ERR : ".$e->getMessage());
|
log_message("G-Sheet For PD Step 5.1 (applicant pkid) ERR : ".$e->getMessage());
|
||||||
var_dump($e->getMessage());
|
var_dump($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -390,10 +391,10 @@ class Data_Dump_Controller extends REST_Controller {
|
|||||||
if(empty($address_id)) {
|
if(empty($address_id)) {
|
||||||
throw new Exception('Error On Inserting Adresses details');
|
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());
|
log_message("G-Sheet For PD Step 6 (Addresses) ERR : ".$e->getMessage());
|
||||||
var_dump($e->getMessage());
|
var_dump($e->getMessage());
|
||||||
}
|
}
|
||||||
$triggertbl_records = array('fk_primary_address_id'=>$address_id,'fk_address_id'=>$address_id);
|
$triggertbl_records = array('fk_primary_address_id'=>$address_id,'fk_address_id'=>$address_id);
|
||||||
|
|
||||||
try {
|
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)))) {
|
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');
|
throw new Exception('Error On updated Adresses Details in trigger table');
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
//alert the user.
|
//alert the user.
|
||||||
log_message("G-Sheet For PD Step 7 (updateAddresses in trigger) ERR : ".$e->getMessage());
|
log_message("G-Sheet For PD Step 7 (updateAddresses in trigger) ERR : ".$e->getMessage());
|
||||||
var_dump($e->getMessage());
|
var_dump($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// print_r($pd_details);
|
// print_r($pd_details);
|
||||||
// print_r($modifiedData);
|
// print_r($modifiedData);
|
||||||
// print_r($addresses);
|
// print_r($addresses);
|
||||||
@ -416,4 +416,4 @@ class Data_Dump_Controller extends REST_Controller {
|
|||||||
// die();
|
// die();
|
||||||
return $pd_id;
|
return $pd_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user