From 3e0b0a093c88378424bb4e1c96e0fec0a313604d Mon Sep 17 00:00:00 2001 From: Velz2020 Date: Thu, 20 Feb 2020 18:09:22 +0530 Subject: [PATCH] SALES PD CHANGES --- .../controllers/Sales_PD_Controller.php | 4 +- .../views/sale_pd_templates/MWISE.php | 37 +++++++++++-------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index b9eb2e01..570f7766 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -485,7 +485,7 @@ class Sales_PD_Controller extends REST_Controller { //print_r($records);die(); log_message('ERROR','####SALESPD SAVE CALLED'); - $section_names = array('1' => 'General Section','2' => 'Fund Requirement','3' => 'stakeholders','4' => 'Brief of business','5' => 'Financial','6' => 'Property Details','7' => 'Officer Details','8' => 'Final Remraks','9' => 'Photography'); + $section_names = array('1' => 'General Section','2' => 'Fund Requirement','3' => 'stakeholders','4' => 'Brief of business','5' => 'Financial','6' => 'Property Details','7' => 'Final Remraks','8' => 'Officer Details','9' => 'Photography'); $count = $this->Sales_PD_Model->selectCustomRecords(array('count(*) as count'),array('lender_id' => $records['lender_id'],'product_id' => $records['product_id']),SALES_PD_DATA); @@ -575,7 +575,7 @@ class Sales_PD_Controller extends REST_Controller { { unset($records['status']); $data['dataStatus'] = true; - $data['records'] = array('section_id' => 9,'sectin_name' => 'selfie image'); + $data['records'][] = array('section_id' => 9,'sectin_name' => 'selfie image'); $data['pd_status'] = 'DRAFT'; $data['status'] = REST_Controller::HTTP_OK; $this->response($data,REST_Controller::HTTP_OK); diff --git a/api/application/views/sale_pd_templates/MWISE.php b/api/application/views/sale_pd_templates/MWISE.php index 01d19053..d0e9de39 100644 --- a/api/application/views/sale_pd_templates/MWISE.php +++ b/api/application/views/sale_pd_templates/MWISE.php @@ -148,11 +148,11 @@ defined('BASEPATH') OR exit('No direct script access allowed'); Personal Discussion by Sales Team - - + Name of Main Loan Applicant @@ -206,12 +206,12 @@ defined('BASEPATH') OR exit('No direct script access allowed'); Details of Key Stakeholders in the Business - Name - Share Holding - Vintage in Current Business (Yrs) - Total Work Exp(Yrs) + Name + Share Holding + Year(s) in Current Business + $section3_value) { - echo ''.$section3_value['name'] .''. - ''.$section3_value['share_holding'].'%'. - ''.$section3_value['vintage_in_current_biz'].''. - ''.$section3_value['total_work_exp'].''. - ''.( isset ($section3_value['previous_experience_details']) && $section3_value['previous_experience_details'] ? $section3_value['previous_experience_details'] : 'NA' ).''. - ''.$section3_value['started_biz'].''. - ''; + echo ''.$section3_value['name'] .''. + ''.$section3_value['share_holding'].'%'. + ''.$section3_value['vintage_in_current_biz'].''.''; + //''.$section3_value['total_work_exp'].''. + + //''.( isset ($section3_value['previous_experience_details']) && $section3_value['previous_experience_details'] ? $section3_value['previous_experience_details'] : 'NA' ).''. + //''.$section3_value['started_biz'].''. + //''; } } @@ -236,7 +237,13 @@ defined('BASEPATH') OR exit('No direct script access allowed'); Brief of the Business / Service - + Nature of business + + + Product/Service Type + + + Other Information