COMMON CONFIG API IMPLEMENTED
This commit is contained in:
parent
fbe6933aa5
commit
aabf11403f
@ -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';
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
@ -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'; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user