diff --git a/api/application/config/constants.php b/api/application/config/constants.php index a2e48fc4..a2a757ed 100644 --- a/api/application/config/constants.php +++ b/api/application/config/constants.php @@ -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'); + diff --git a/api/application/config/routes.php b/api/application/config/routes.php index 55f73f7e..373bfeac 100644 --- a/api/application/config/routes.php +++ b/api/application/config/routes.php @@ -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 diff --git a/api/application/controllers/Entity_Management_Controller.php b/api/application/controllers/Entity_Management_Controller.php index 0b8afbd8..ecca45fa 100644 --- a/api/application/controllers/Entity_Management_Controller.php +++ b/api/application/controllers/Entity_Management_Controller.php @@ -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); diff --git a/api/application/views/sale_pd_templates/MWISE.php b/api/application/views/sale_pd_templates/MWISE.php index b2eb80a6..e25cb15e 100644 --- a/api/application/views/sale_pd_templates/MWISE.php +++ b/api/application/views/sale_pd_templates/MWISE.php @@ -175,7 +175,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');