FI PhotoGraph Changes : ps

This commit is contained in:
VE10-Sanjeev 2022-09-26 10:53:06 +05:30
parent 42a6f0d86a
commit ea5fed416a
2 changed files with 5 additions and 0 deletions

View File

@ -2706,6 +2706,9 @@ class PD_Controller extends REST_Controller
case 27: case 28: case 29: case 30: case 31: case 32: case 33:
$processed_json = $records;
break;
case 34:
$processed_json = $records['photograph_details'];
break;
//default:
//echo "Something Wrong! Form ID did not match, Contact System Administrator";

View File

@ -1799,10 +1799,12 @@ class Template_Management_Controller extends REST_Controller {
$fields = array('json');
$where_condition_array = array("fk_form_id"=>$form_id,"fk_pd_id"=>$pd_id,'isactive'=>1);
$form_table = $this->Template_Management_Model->selectCustomRecords($fields,$where_condition_array,PDFORMDETAILSJSON);
// print_r($form_table);
// $file = $this->external_path . '/pd_reports/tmp/1.txt'; // testing purpose;
if(count($form_table)>0){
// if(1){
$json = json_decode($form_table[0]['json'],true);
$json = $json['photograph_details'];
// $json = $this->getArr(); // testing purpose;
// print_r($json);die(); // testing purpose;
$pd_master = $this->PD_Model->selectCustomRecords(array('pd_id', 'random_string','fk_lender_id'), array('pd_id' => $pd_id ), PDTRIGGER);