Flyhi Type : ps

This commit is contained in:
VE10-Sanjeev 2023-06-10 12:46:17 +05:30
parent a8a59f74e2
commit 8a74b2a529

View File

@ -1292,7 +1292,7 @@ class Flyhi_Controller extends REST_Controller {
$fk_createdby = $records['fk_createdby'];
$status = $records['is_complete'];
$section_data = json_encode($records);
$FHFSL_lender = (ENVIRONMENT == 'production' ? 19 : 31);
//Get Sales PD master Data
$columns = array('SALES_PD_DATA.*','ENTITY.short_name','PRODUCT.abbr');
@ -1346,7 +1346,7 @@ class Flyhi_Controller extends REST_Controller {
if($g_key == 'applicant_name'){
$applicant_name = (!empty($g_value)) ? $g_value : null ;
}
$flyhi_pd_type = 5; // default demo Type
if($g_key == 'verification_type' && $g_value == 'Residence verification'){
$flyhi_pd_type = 4;
}
@ -1383,7 +1383,7 @@ class Flyhi_Controller extends REST_Controller {
$FLYHI_PD['lender_credit_person'] = $lender_credit_person ;
$FLYHI_PD['pd_branch_id'] = $pd_branch_id;
$FLYHI_PD['lender_id'] = $lender_id;
$FLYHI_PD['sales_pd_type'] = $flyhi_pd_type;
$FLYHI_PD['sales_pd_type'] = ($FHFSL_lender == $lender_id) ? $flyhi_pd_type : 5;
$FLYHI_PD['product_id'] = $product_id ? $product_id : (ENVIRONMENT == 'production' ? 27 : 26);
$this->Flyhi_Model->updateRecords($FLYHI_PD,SALES_PD_DATA,array('sales_pd_id' => $sales_pd_id));