SALES PD CHANGES

This commit is contained in:
Velz2020 2020-02-20 18:09:22 +05:30
parent 9a4ea7be94
commit 3e0b0a093c
2 changed files with 24 additions and 17 deletions

View File

@ -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);

View File

@ -148,11 +148,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<tr>
<th class="thlargefont" colspan="10" >Personal Discussion by Sales Team - <?php echo $product_name; ?> </th>
</tr>
<tr>
<!-- <tr>
<td colspan="3"> Application ID</td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['application_id'] ? $section1['application_id'] : 'Not Provided'?> </td>
</tr>
<tr>
<tr> -->
<td colspan="3"> Name of Main Loan Applicant</td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['main_loan_applicant']?> </td>
@ -206,12 +206,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<th class="thlargefont" colspan="10">Details of Key Stakeholders in the Business</th>
</tr>
<tr>
<th colspan="2">Name</th>
<th colspan="1" >Share Holding</th>
<th colspan="1" >Vintage in Current Business (Yrs)</th>
<th colspan="1">Total Work Exp(Yrs)</th>
<th colspan="6">Name</th>
<th colspan="2" >Share Holding</th>
<th colspan="2" >Year(s) in Current Business</th>
<!-- <th colspan="1">Total Work Exp(Yrs)</th>
<th colspan="3" >Previous Experience Details</th>
<th colspan="2" >Started Business</th>
<th colspan="2" >Started Business</th> -->
</tr>
<?php
if($section3)
@ -219,13 +219,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
foreach ($section3 as $section3_key => $section3_value)
{
echo '<tr><td class="tdcenteralign" colspan="2">'.$section3_value['name'] .'</td>'.
'<td class="tdcenteralign" colspan="1">'.$section3_value['share_holding'].'%</td>'.
'<td class="tdcenteralign" colspan="1">'.$section3_value['vintage_in_current_biz'].'</td>'.
'<td class="tdcenteralign" colspan="1">'.$section3_value['total_work_exp'].'</td>'.
'<td class="tdcenteralign" colspan="3">'.( isset ($section3_value['previous_experience_details']) && $section3_value['previous_experience_details'] ? $section3_value['previous_experience_details'] : 'NA' ).'</td>'.
'<td class="tdcenteralign" colspan="2" style="text-align: center">'.$section3_value['started_biz'].'</td>'.
'</tr>';
echo '<tr><td class="tdcenteralign" colspan="6">'.$section3_value['name'] .'</td>'.
'<td class="tdcenteralign" colspan="2">'.$section3_value['share_holding'].'%</td>'.
'<td class="tdcenteralign" colspan="2">'.$section3_value['vintage_in_current_biz'].'</td>'.'</tr>';
//'<td class="tdcenteralign" colspan="1">'.$section3_value['total_work_exp'].'</td>'.
//'<td class="tdcenteralign" colspan="3">'.( isset ($section3_value['previous_experience_details']) && $section3_value['previous_experience_details'] ? $section3_value['previous_experience_details'] : 'NA' ).'</td>'.
//'<td class="tdcenteralign" colspan="2" style="text-align: center">'.$section3_value['started_biz'].'</td>'.
//'</tr>';
}
}
@ -236,7 +237,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<th class="thlargefont" colspan="10" >Brief of the Business / Service</th>
</tr>
<tr>
<td colspan="10" style="text-align: justify;word-wrap:break-word;table-layout:fixed;"><?php echo $section4['brief_business_service']?></td>
<td colspan="4" style="text-align: left;word-wrap:break-word;table-layout:fixed;">Nature of business</td><td colspan="6" style="text-align: center;word-wrap:break-word;table-layout:fixed;"><?php echo $section4['nature_of_business']?></td>
</tr>
<tr>
<td colspan="4" style="text-align: left;word-wrap:break-word;table-layout:fixed;">Product/Service Type</td><td colspan="6" style="text-align: center;word-wrap:break-word;table-layout:fixed;"><?php echo $section4['product_service_type']?></td>
</tr>
<tr>
<td colspan="4" style="text-align: left;word-wrap:break-word;table-layout:fixed;">Other Information</td><td colspan="6" style="text-align: center;word-wrap:break-word;table-layout:fixed;"><?php echo $section4['other_information']?></td>
</tr>
<!-- <tr></tr><tr></tr><tr></tr> -->
</tbody></table>