TELE SALES PD REPORT

This commit is contained in:
Velz2020 2020-06-12 23:31:01 +05:30
parent 730e51fa28
commit 1f1a966ebd
4 changed files with 17 additions and 7 deletions

View File

@ -91,6 +91,7 @@ defined('ROUTE_LOGIN_X') OR define('ROUTE_LOGIN_X', '(getPDReportHTML/:an
defined('ROUTE_LOGIN_Y') OR define('ROUTE_LOGIN_Y', '(getPDReportPDFpreview/:any/:any)'); // no errors
defined('ROUTE_LOGIN_Z') OR define('ROUTE_LOGIN_Z', 'getSalesPDImgDataCusLink'); // no errors
defined('ROUTE_LOGIN_W') OR define('ROUTE_LOGIN_W', 'saveSalesPDImage'); // no errors
defined('ROUTE_LOGIN_V') OR define('ROUTE_LOGIN_V', 'generateSatelliteImg'); // no errors
//defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN','getFullPDDetails'); // no errors
/*********************AWS resources Constants*************************************************/

View File

@ -167,7 +167,7 @@ class Sales_PD_Controller extends REST_Controller {
$where_condition_array = array('SALES_PD_DATA.sales_pd_id' => $sales_pd_id);
$sales_pd_data = $this->Sales_PD_Model->getJoinRecords($columns,$table,$joins,$where_condition_array);
//print_r($sales_pd_data);//die();
//print_r($sales_pd_data);die();
if($sales_pd_data)
{
@ -987,7 +987,7 @@ public function filterSalesPDList_post() {
//print_r($sales_pd_img_data);
//sales tele pd img structure array
$imgs = array('selfie_with_person_met' => array('is_multiple' => 0,'img_name' => 'Selfie With Person Met'),'name_board_seen' => array('is_multiple' => 1,'img_name' => 'Business Name Board'),'stock_image' => array('is_multiple' => 1,'img_name' => 'Stock Images'),'workplace_interior_image' => array('is_multiple' => 1,'img_name' => 'Work Place Interior'));
$imgs = array('selfie_with_person_met' => array('is_multiple' => 0,'img_name' => 'Selfie of the person contacted'),'name_board_seen' => array('is_multiple' => 1,'img_name' => 'Business Name Board'),'stock_image' => array('is_multiple' => 1,'img_name' => 'Stock Images'),'workplace_interior_image' => array('is_multiple' => 1,'img_name' => 'Work Place Interior'));
$img_data = array();
if(count($sales_pd_img_data))

View File

@ -72,7 +72,7 @@ class AUTHORIZATION
}
if( $routingName == ROUTE_LOGIN_X || $routingName == ROUTE_LOGIN_Y || $routingName == ROUTE_LOGIN_Z || $routingName == ROUTE_LOGIN_W)
if( $routingName == ROUTE_LOGIN_X || $routingName == ROUTE_LOGIN_Y || $routingName == ROUTE_LOGIN_Z || $routingName == ROUTE_LOGIN_W || $routingName == ROUTE_LOGIN_V)
{
return true;
}

View File

@ -162,11 +162,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['company_name']?></td>
</tr>
<tr>
<td colspan="3">Name of Person Met during visit</td>
<td colspan="3"><?php if($master[0]['sales_pd_type'] == 1){echo 'Name of Person Met during visit'; }else{ echo 'Name of the Person Contacted'; } ?></td>
<td class = "tdcenteralign" colspan="7"><?php echo $section1['person_met_during_visit']?></td>
</tr>
<tr>
<td colspan="3" rowspan="2" >Address Visited</td>
<td colspan="3" rowspan="2" ><?php if($master[0]['sales_pd_type'] == 1){echo 'Address Visited'; }else{ echo 'Business Address'; } ?></td>
<td class = "tdcenteralign" colspan="7"><?php echo $section1['address_visited']?></td>
</tr>
<tr>
@ -474,12 +474,15 @@ if(isset($section6))
<tr>
<th class="thlargefont" colspan="10" >Final Remarks of Sales officer</th>
</tr>
<?php if($master[0]['sales_pd_type'] == 1){?>
<tr>
<td colspan="4" >Business activity seen during visit (Yes / No)</td>
<td class="tdcenteralign" ><?php echo $section7['business_activity_seen']?></td>
<td colspan="4" >Location of workplace suits the business (Yes/No)</td>
<td class="tdcenteralign" ><?php echo $section7['location_workplace_suits_business']?></td>
</tr>
<?php }?>
<tr>
<td colspan="4" >Overall Assessment (Positive / Negative)</td>
<td class="tdcenteralign" <?php if($section7['overall_assessment'] == 'Positive') { echo 'style="color:green;"';}else{ echo 'style="color:red;"';} ?> ><?php echo $section7['overall_assessment']?></td>
@ -496,11 +499,16 @@ if(isset($section6))
<div id="page_break"></div>
<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 $geo_location ?></b></p>
<img style="border:3px solid #0191ed;" src = "<?php echo 'data:image/gif;base64,'.$satellite_image[0]['img']; ?>" alt = "PD Visted Location Satellite Image " height="300px" width="630px">
<p><b>GPS Coordinates of location where PD Visit was done : <?php echo $geo_location ? $geo_location : '-'; ?></b></p>
<?php if($geo_location) { ?>
<img style="border:3px solid #0191ed;" src = "<?php echo 'data:image/gif;base64,'.$satellite_image[0]['img']; ?>" alt = "PD Visted Location Satellite Image " height="300px" 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>';}
?>
<?php
$iter = 0;
$photo_names = array('selfie_with_person_met' => 'Selfie with person met','approach_to_pd_location' => 'Approach to pd location','name_board_seen' => 'Name board seen', 'stock_image' => 'Stock image','workplace_interior_image' => 'Workplace interior image','satellite1' => 'satellite');
if($master[0]['sales_pd_type'] == 2){ $photo_names['selfie_with_person_met'] = 'Selfie of the person contacted';}
//echo count($section9);die();
//print_r(array_keys($section9));die();
$tot_rows = ceil(count($section9) / 3);
@ -528,6 +536,7 @@ if(isset($section6))
if(isset($section9[$i]))
{
echo '<td style="text-align:center;border:1px solid;"> <img src="'.$section9[$i]['img'].'" height = "200" width="200" alt="'.$section9[$i]['img_name'].'"/><br>'.$photo_names [ $section9[$i]['img_name'] ].'</td>';
}