PDGENIE NEW REQUIREMENT

This commit is contained in:
Velz2020 2020-03-24 12:13:16 +05:30
parent 001259b5bb
commit c6ad7dd690
4 changed files with 15 additions and 4 deletions

View File

@ -612,5 +612,7 @@ defined('SALES_PD_DATA') OR define('SALES_PD_DATA','t_sales_pd_data');
defined('SALEPD_DOCS') OR define('SALEPD_DOCS','t_salepd_docs');
defined('SALESPD_SECTION_DATA') OR define('SALESPD_SECTION_DATA','t_salespd_section_data');
defined('CUS_LINK_META_DATA') OR define('CUS_LINK_META_DATA','t_cus_link_meta_data');

View File

@ -243,6 +243,8 @@ $route['deactiveFormData'] = 'PD_Controller/deactiveFormData';
$route['getNextRentalCount'] = 'PD_Controller/getNextRentalCount';
$route['photoPDFDownload'] = 'PD_Controller/imgPDFDownload';
$route['renewSatellite'] = 'PD_Controller/renewSatellite';
$route['uploadPDImgByApplicant'] = 'PD_Controller/uploadPDPhotosByApplicant';
$route['getPDImgDetails'] = 'PD_Controller/getPDImgDetails';
//$route['getTypeOfActivetyFromBusinessJSON'] = 'PD_Controller/getTypeOfActivetyFromBusinessJSON';
//Dashboard and Reports Related routes

View File

@ -1120,6 +1120,7 @@ class Entity_Management_Controller extends REST_Controller {
$default_pd_type = null;
$default_customer_segment = null;
$default_sub_product = null;
$lender_other_configs = null;
//echo $entity_id;
$existing_preferences = $this->Entity_Management_Model->selectCustomRecords(array('*'),array('fk_entity_id' => $entity_id),ENTITYPREFERENCE);
@ -1132,8 +1133,8 @@ class Entity_Management_Controller extends REST_Controller {
if(count($existing_preferences))
{
foreach($existing_preferences as $preference_key => $preference_value)
{ foreach($existing_preferences as $preference_key => $preference_value)
{
if($preference_value['preference_type'] == 1)
{
@ -1159,6 +1160,10 @@ class Entity_Management_Controller extends REST_Controller {
{
$default_sub_product = $preference_value['values'];
}
if($preference_value['preference_type'] == 6)// like remove mandatory fields
{
$lender_other_configs = $preference_value['values'];
}
}
@ -1217,10 +1222,12 @@ class Entity_Management_Controller extends REST_Controller {
$this->db->WHERE('isactive',1);
$pd_types = $this->db->GET()->result_array();
$data['dataStatus'] = true;
$data['status'] = REST_Controller::HTTP_OK;
$data['records'] = array('products' =>$products,'customer_segments' => $customer_segments, 'pd_types' => $pd_types,'financial_institutions' => $financial_institutions,'salespd_products' => $salespd_products,'default_product' =>$default_product,'default_customer_segment' => $default_customer_segment,'default_pd_type' => $default_pd_type,'default_sub_product' => $default_sub_product);
$data['records'] = array('products' =>$products,'customer_segments' => $customer_segments, 'pd_types' => $pd_types,'financial_institutions' => $financial_institutions,'salespd_products' => $salespd_products,'default_product' =>$default_product,'default_customer_segment' => $default_customer_segment,'default_pd_type' => $default_pd_type,'default_sub_product' => $default_sub_product,'lender_other_config' => $lender_other_configs);
$this->response($data,REST_Controller::HTTP_OK);

View File

@ -175,7 +175,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<td>State</td>
<td class = "tdcenteralign"><?php echo $section1['city']?></td>
<td>PIN</td>
<td class = "tdcenteralign" colspan="2"><?php echo $section1['pincode']?></td>
<td class = "tdcenteralign" colspan="2"><?php if(isset($section1['pincode_others'])){ echo $section1['pincode_others']; } else { echo $section1['pincode']; }?></td>
</tr>
</tbody>
</table>