From 3241ec71d5071aa5acb1c7d1a36b94d297c428b5 Mon Sep 17 00:00:00 2001 From: velz Date: Fri, 26 Oct 2018 14:18:42 +0530 Subject: [PATCH] REVIEW PD PROCESS --- api/application/config/constants.php | 2 +- api/application/models/PD_Model.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/api/application/config/constants.php b/api/application/config/constants.php index 0b15a4a7..c8a42285 100644 --- a/api/application/config/constants.php +++ b/api/application/config/constants.php @@ -87,7 +87,7 @@ defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest auto // define login route name for token verification //defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', '(listLessPDDetails/:any)'); // no errors //defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', '(listAllTemplates/:any)'); // no errors -defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', 'loadFullTemplate'); // no errors +defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', 'getAnswersForPD'); // no errors /*********************AWS resources Constants*************************************************/ defined('PROFILE_PICTURE_BUCKET_NAME') OR define('PROFILE_PICTURE_BUCKET_NAME','sineedgedevprofilepic'); diff --git a/api/application/models/PD_Model.php b/api/application/models/PD_Model.php index e7e265c7..7defabbe 100644 --- a/api/application/models/PD_Model.php +++ b/api/application/models/PD_Model.php @@ -196,7 +196,7 @@ class PD_Model extends SPARQ_Model { */ public function getPDLogs($pdid) { - $pdid = 63; + //$pdid = 63; $arrayForText = array("fk_lender_id" => "Lender", "fk_entity_billing_id" => "Billing ID", "lender_applicant_id" => "Applicant Ref ID", "pd_date_of_initiation" => "PD Date of Initiation", "fk_product_id" => "Product", "fk_subproduct_id" => "Sub Product","fk_pd_type" => "PD Type", "pd_status" => "PD Status", "pd_specific_clarification"=> "PD Specific Clarification","fk_pd_allocation_type" => "Allocation Type", "fk_pd_allocated_to" => "Allocated Person", "fk_pd_template_id" => "PD Tempale", "fk_customer_segment" => "Customer Segment", "pd_officier_final_judgement" => "PD Officer Finale Judgement", "pd_agency_id" => "PD Agency", "loan_amount" => "Loan Amount", "addressline1" => "Addressline1", "addressline2" => "Addressline1", "addressline3" => "Addressline1", "fk_city" => "City", "fk_state" => "State", "pincode" => "Pincode", "bounce_reason" => "Bounce Reason", "executive_id" => "PD Executive", "pd_contact_person" => "Lender Contact Person", "pd_contact_mobileno" => "Lender Contact Mobile Number", "scheduled_on" => "Scheduled On", "completed_on" => "Completed On"); @@ -525,6 +525,11 @@ class PD_Model extends SPARQ_Model { $where_condition_array = array('fk_pd_id'=>$pd_id,'fk_question_id'=>$question_id); $pd_detail = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,PDDETAIL); // print_r($pd_detail);die(); + $overalldata['question_remark'] = ""; + $overalldata['pd_detail_id'] = ""; + $overalldata['question_id'] = ""; + $overalldata['pd_question'] = ""; + $overalldata['images'] = array();; if(count($pd_detail)) { $overalldata['question_remark'] = $pd_detail[0]['question_remark'];