diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index dc7ecc84..c7d9486e 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -87,8 +87,8 @@ class Sales_PD_Controller extends REST_Controller { } } - $records['applicant_id'] = $applicant_name; - $records['applicant_name'] = $applicant_id; + $records['applicant_id'] = $applicant_id; + $records['applicant_name'] = $applicant_name; $records['officer_name'] = $officer; $id = null; if(!$records['sales_pd_id']) @@ -162,7 +162,7 @@ class Sales_PD_Controller extends REST_Controller { } $view_data['section9'] = $this->Sales_PD_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $sales_pd_id),SALEPD_DOCS); - //print_r($view_data);die(); + //print_r($this->db->last_query());die(); //$view_name = $sales_pd_data[0]['short_name'].'_'.$sales_pd_data[0]['abbr']; $view_name = $sales_pd_data[0]['short_name']; $html_content = $this->load->view('sale_pd_templates/'.$view_name,$view_data,true); diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index 7fa6f79e..a9e348c7 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -1867,7 +1867,7 @@ if($total_no_of_business > 0) { echo '
| Photograph`s |
|---|
| '.$photo_names [ $p_value['img_name'] ].' | ';
+ echo '
| '.$photo_names [ $section9[$i]['img_name'] ].' | ';
+
+ //unset($p_key);
+ }
+ echo '';
}
echo '