COMMON CONFIG API IMPLEMENTED

This commit is contained in:
Velz2020 2020-03-13 17:29:34 +05:30
parent fbe6933aa5
commit aabf11403f
3 changed files with 14 additions and 1 deletions

View File

@ -83,6 +83,7 @@ $route['getLender'] = 'Common_Masters_Controller/getLender';
$route['getProduct'] = 'Common_Masters_Controller/getProduct';
$route['getCustomerSegment'] = 'Common_Masters_Controller/getCustomerSegment';
$route['(checkAppVersion/:any)'] = 'Common_Masters_Controller/checkAppVersion';
$route['getCommonConfig'] = 'Common_Masters_Controller/getCommonConfig';

View File

@ -1189,4 +1189,16 @@ class Common_Masters_Controller extends REST_Controller {
$this->response($data,REST_Controller::HTTP_OK);
}
}
public function getCommonConfig_post()
{
$config['default_pd_list_count']['count'] = '60';
$config['default_pd_list_count']['factor'] = 'Days';
$data['dataStatus'] = true;
$data['status'] = REST_Controller::HTTP_OK;
$data['records'] = $config;
$this->response($data,REST_Controller::HTTP_OK);
}
}

View File

@ -938,7 +938,7 @@ class PD_Model extends SPARQ_Model {
if($result_array[0]['fk_product_id'] == "" || $result_array[0]['fk_product_id'] == null || $result_array[0]['fk_product_id'] == 0){ $mandatory_fields[] = 'fk_product_id'; }
if(($result_array[0]['lender_short_name'] != 'CLIX') && ($result_array[0]['lender_short_name'] != 'MWISE' && $result_array[0]['subproduct_abbr'] != "BL"))
if(($result_array[0]['lender_short_name'] != 'CLIX') && ($result_array[0]['lender_short_name'] != 'MWISE' && $result_array[0]['prod_catagory'] != "BL"))
{
if($result_array[0]['fk_subproduct_id'] == "" || $result_array[0]['fk_subproduct_id'] == null || $result_array[0]['fk_subproduct_id'] == 0){ $mandatory_fields[] = 'fk_subproduct_id'; }