SMC USER CONFIG REPORT FEEDBACK

This commit is contained in:
Velz2020 2020-12-24 23:45:18 +05:30
parent e4302161c3
commit 90efee3cc7
5 changed files with 46 additions and 15 deletions

View File

@ -36,7 +36,7 @@ $config['api_user_auth_info'] = array(
//'updatePDMaster' => array(1,2,3,10,11,12,13,1,15,16,17,18,19,20),
'updatePDDocs' => array(1,2,3,10,11,12,13,1,15,16,17,18,19,20),
'updatePDApplicants' => array(1,2,3,10,11,12,13,1,15,16,17,18,19,20),
'allocatePD' => array(2,3,4,5,10,21,22),
'allocatePD' => array(2,3,4,5,10,21,22,25,26),
'schdulePD' => array(2,3,4,5,21,10,22,21),
'generatePDReport' => array(3,6,7,10),
'savePDPhotos' => array(3,4,5,6,7,10,21,22),

View File

@ -661,6 +661,7 @@ defined('SMC_CREDIT_PD_FORMS') OR define('SMC_CREDIT_PD_FORMS','m_smc_credit_pd_
defined('SMC_CREDITPD_IMGS') OR define('SMC_CREDITPD_IMGS','m_smc_creditpd_imgs');
defined('SALESVENDORLIST') OR define('SALESVENDORLIST','m_smcvendorlist');
defined('SALESEQUIPMENTLIST') OR define('SALESEQUIPMENTLIST','m_smc_equipmentlist');
defined('USERCONFIG') OR define('USERCONFIG','m_user_config');

View File

@ -305,7 +305,9 @@ class User_Management_Controller extends REST_Controller {
$userid = $this->post('userid');
$result = $this->User_Management_Model->getUserDetails($userid);
$user_config = $this->User_Management_Model->getUserConfigDetails($userid);
// print_r($result['data']);die();
$result['data'][0]['user_config'] = $user_config;
if($result['data_status'])
{
$data['dataStatus'] = true;

View File

@ -97,6 +97,33 @@ class User_Management_Model extends SPARQ_Model {
}
function getUserConfigDetails($userid)
{
$return_data = array();
$this->db->select('*');
$this->db->where('USERCONFIG.fk_user_id',$userid);
$this->db->where('USERCONFIG.isactive',1);
$result = $this->db->get(USERCONFIG.' as USERCONFIG')->result_array();
// print_r($result);die();
if(count($result) !=0)
{
foreach ($result as $key => $value)
{
if($value['config_type'] == 1)//sales pd products
{
$return_data['salespd_products'] = (explode(",",$value['data']));
}
}
}
return $return_data;
}
public function pinDetails($records)
{
$this->db->select('*');

View File

@ -212,7 +212,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<td class = "tdcenteralign" colspan="7"> <?php echo isset($applicant_details[0]['company_name']) ? $applicant_details[0]['company_name'] : $pd_master_details[0]['main_applicant']?></td>
</tr>
<?php if(isset($pd_section_data[1]['person_met'])){?>
<?php if(isset($pd_section_data[1]['person_met']) && $pd_section_data[1]['person_met'] != ''){?>
<tr>
<td colspan="3"> Name of Person Met During Visit</td>
@ -245,15 +245,19 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
$ownership_type = '';
if( !strtolower($pd_section_data[8]['business_ownership_type']) == 'owned')
if( (strtolower($pd_section_data[8]['business_ownership_type'])) == 'owned')
{
$ownership_type = '( Owned )';
}
else
{
$ownership_type = '( Rented ) - '.$pd_section_data[8]['business_monthly_rented_amt'];
$ownership_type = ' ( Rented ) - Rent paid '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($pd_section_data[8]['business_monthly_rented_amt']);
}
echo '<tr> <td colspan="3">Address Type / Ownership</td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['address_type']['address_type'].$ownership_type.'</td></tr>';
if(isset($pd_section_data[8]['is_business_address']) && strtolower($pd_section_data[8]['is_business_address']) == 'yes')
{
echo '<tr> <td colspan="3">Business operating duration<br> from this address </td> <td class = "tdcenteralign" colspan="7">'.($pd_section_data[8]['business_years'].' Year(s)'.(isset($pd_section_data[8]['business_months']) && $pd_section_data[8]['business_months'] != '' ? ' & ' . $pd_section_data[8]['business_months'] .' Month(s)': '')).'</td> </tr>';
}
echo '<tr> <td colspan="3">PD locality</td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['pd_locality']['locality_name'].'</td></tr>';
echo '<tr> <td colspan="3">Location Approach</td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['pd_location']['description'].'</td></tr>';
echo '<tr> <td colspan="3">Comment On Locality</td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['comment_locality']['rating'].'</td></tr>';
@ -261,10 +265,6 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
?>
<?php if(isset($pd_section_data[8]['is_business_address']) && strtolower($pd_section_data[8]['is_business_address']) == 'yes'){ ?>
<tr> <td colspan="3">Business operating duration<br> from this address </td> <td class = "tdcenteralign" colspan="7"><?php echo ($pd_section_data[8]['business_years'].'Year(s)'.(isset($pd_section_data[8]['business_months']) && $pd_section_data[8]['business_months'] != '' ? ' & ' . $pd_section_data[8]['business_months'] .'Month(s)': '')); }?></td> </tr>
</tbody>
</table>
@ -273,7 +273,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<br><table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Satellite Image of PD Location</th></tr></table><br>
<p><b>GPS Coordinates of location where PD Visit was done : <?php echo $pd_master_details[0]['start_location'] ? $pd_master_details[0]['start_location'] : '-'; ?></b></p>
<?php if($pd_master_details[0]['start_location']) { ?>
<img style="border:3px solid #0191ed;" src = "<?php echo 'data:image/gif;base64,'.$satellite[0]['img']; ?>" alt = "PD Visted Location Satellite Image " height="300px" width="630px">
<img style="border:3px solid #0191ed;" src = "<?php echo 'data:image/gif;base64,'.$satellite[0]['img']; ?>" alt = "PD Visted Location Satellite Image " height="270px" width="630px">
<?php
}else{ echo '<p>Due to location access not provided by loan applicant Geo coordinates on photographs and Satellite image of PD location is not shown</p>';}
?>
@ -510,7 +510,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<table class="scorecard_table" style="table-layout: fixed">
<tbody>
<tr>
<th class="thlargefont" colspan="15">Other Family Members involved in the business</th>
<th class="thlargefont" colspan="15">Other Family Members involved in the Business</th>
</tr>
<?php if(isset($pd_section_data[16]['family_details'])) {?>
<tr>
@ -541,7 +541,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
else
{
echo '<tr><td colspan="15" class="tdcenteralign">No other family member is involved in the business</td></tr>';
echo '<tr><td colspan="15" class="tdcenteralign">No Other Family Members are involved in the Business.</td></tr>';
}
if(isset($pd_section_data[16]['common_remarks']) && !empty($pd_section_data[16]['common_remarks']))
{
@ -551,7 +551,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
?>
</tbody></table>
<br>
<table class="scorecard_table">
<tbody>
<tr>
@ -721,7 +721,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
</table> -->
<?php } ?>
<!-- <table class="scorecard_table">
</table -->>
</table -->
<div id="page_break"> </div>
@ -1096,7 +1096,8 @@ if(isset($pd_section_data[11]['common_remarks']) && !empty($pd_section_data[11][
else if(isset($pd_section_data[12]['client_not_available_reason'])){
echo '<tr><td class="tdcenteralign">Client Information Not available. Reason - '.$pd_section_data[12]['client_not_available_reason'] .'</td></tr>';}
if(isset($pd_section_data[12]['common_remarks']) && !empty($pd_section_data[12]['common_remarks'])){
echo '<tr><td class="tdcenteralign">Remarks - '.$pd_section_data[12]['common_remarks'] .'</td></tr>';}
echo '<tr><td class="tdcenteralign" colspan='.(count($pd_section_data[12]['client_details']) + 1).'>Remarks - '.$pd_section_data[12]['common_remarks'] .'</td></tr>';
}
?>