From 7450c29b798a7c9a5e9408d9866a9dda348d0cd2 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 15 Jun 2022 04:41:50 +0000 Subject: [PATCH] Flyhi_Controller.php edited online with Bitbucket --- .../controllers/Flyhi_Controller.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/api/application/controllers/Flyhi_Controller.php b/api/application/controllers/Flyhi_Controller.php index a67ba436..1cc9c64e 100644 --- a/api/application/controllers/Flyhi_Controller.php +++ b/api/application/controllers/Flyhi_Controller.php @@ -303,15 +303,15 @@ class Flyhi_Controller extends REST_Controller { } } - $FLYHI_PD['applicant_name'] = int($applicant_name); - $FLYHI_PD['applicant_id'] = int($applicant_id); - $FLYHI_PD['city_id']=int($city); - $FLYHI_PD['loan_amount'] = int($loan_amount); - $FLYHI_PD['lender_sales_person'] = int($lender_sales_person) ; - $FLYHI_PD['lender_credit_person'] = int($lender_credit_person) ; - $FLYHI_PD['pd_branch_id'] = int($pd_branch_id); - $FLYHI_PD['lender_id'] = int($lender_id); - $FLYHI_PD['product_id'] = int($product_id); + $FLYHI_PD['applicant_name'] = $applicant_name; + $FLYHI_PD['applicant_id'] = $applicant_id; + $FLYHI_PD['city_id']=$city; + $FLYHI_PD['loan_amount'] = $loan_amount; + $FLYHI_PD['lender_sales_person'] = $lender_sales_person ; + $FLYHI_PD['lender_credit_person'] = $lender_credit_person ; + $FLYHI_PD['pd_branch_id'] = $pd_branch_id; + $FLYHI_PD['lender_id'] = $lender_id; + $FLYHI_PD['product_id'] = $product_id ? $product_id : (ENVIRONMENT == 'production' ? 27 : 26); $flyhi_pd_id = $this->Flyhi_Model->updateRecords($FLYHI_PD,SALES_PD_DATA,array('sales_pd_id' => $flyhi_pd_id)); $status = $records['is_complete']; $fields = array('sales_pd_id' => $flyhi_pd_id, 'section_id' => 1, 'status' =>$status ,'section_data' => $section_data,'createdby' => $fk_createdby);