RI STANALONE TRACK URL CONSTANT
This commit is contained in:
parent
59fa8ad0a3
commit
dff6a8073e
@ -102,6 +102,7 @@ defined('PHANTOMJSSCRIPT_LOCATION') OR define('PHANTOMJSSCRIPT_LOCATION','phanto
|
||||
defined('LOGTOBOT') OR define('LOGTOBOT',0);
|
||||
defined('GOOGLE_STATIC_MAP_API_KEY') OR define('GOOGLE_STATIC_MAP_API_KEY','AIzaSyA3lYDYxwtn5vLSl45SOKbtK7G6cEyXGr0');
|
||||
defined('FIREBASE_PUSH_NOTIFICATION_SERVER_API_KEY') OR define('FIREBASE_PUSH_NOTIFICATION_SERVER_API_KEY','AAAA0yTIWHY:APA91bGuBHAEn1NcX95Uudm847Ez2AIbqqmi5698trFPx0cIs0OTXWUNu7c5DKDJlbxPBILytBGC5cEHqEy08AQZGu_rpCE4hyvoHyCDkOjuwhA3DFNMQDpMU6XxDDJXCI1zjhHRuEQr');
|
||||
defined('OFFICER_TRACKING_URL') OR define('OFFICER_TRACKING_URL','https://demo.pdgenie.com/otnew/#/');
|
||||
}
|
||||
else if(ENVIRONMENT == 'testing')
|
||||
{
|
||||
@ -112,6 +113,7 @@ else if(ENVIRONMENT == 'testing')
|
||||
defined('LOGTOBOT') OR define('LOGTOBOT',0);
|
||||
defined('GOOGLE_STATIC_MAP_API_KEY') OR define('GOOGLE_STATIC_MAP_API_KEY','AIzaSyA3lYDYxwtn5vLSl45SOKbtK7G6cEyXGr0');
|
||||
defined('FIREBASE_PUSH_NOTIFICATION_SERVER_API_KEY') OR define('FIREBASE_PUSH_NOTIFICATION_SERVER_API_KEY','AAAA0yTIWHY:APA91bGuBHAEn1NcX95Uudm847Ez2AIbqqmi5698trFPx0cIs0OTXWUNu7c5DKDJlbxPBILytBGC5cEHqEy08AQZGu_rpCE4hyvoHyCDkOjuwhA3DFNMQDpMU6XxDDJXCI1zjhHRuEQr');
|
||||
defined('OFFICER_TRACKING_URL') OR define('OFFICER_TRACKING_URL','https://demo.pdgenie.com/otnew/#/');
|
||||
}
|
||||
else if(ENVIRONMENT == 'production')
|
||||
{
|
||||
@ -122,6 +124,7 @@ else if(ENVIRONMENT == 'production')
|
||||
defined('LOGTOBOT') OR define('LOGTOBOT',0);
|
||||
defined('GOOGLE_STATIC_MAP_API_KEY') OR define('GOOGLE_STATIC_MAP_API_KEY','AIzaSyA3lYDYxwtn5vLSl45SOKbtK7G6cEyXGr0');
|
||||
defined('FIREBASE_PUSH_NOTIFICATION_SERVER_API_KEY') OR define('FIREBASE_PUSH_NOTIFICATION_SERVER_API_KEY','AAAA0yTIWHY:APA91bGuBHAEn1NcX95Uudm847Ez2AIbqqmi5698trFPx0cIs0OTXWUNu7c5DKDJlbxPBILytBGC5cEHqEy08AQZGu_rpCE4hyvoHyCDkOjuwhA3DFNMQDpMU6XxDDJXCI1zjhHRuEQr');
|
||||
defined('OFFICER_TRACKING_URL') OR define('OFFICER_TRACKING_URL','https://pdgenie.com/track/#/');
|
||||
}
|
||||
|
||||
/*********************END of AWS resources Constants*************************************************/
|
||||
|
||||
@ -485,7 +485,7 @@ class PD_Controller extends REST_Controller {
|
||||
$randomString .= $characters[rand(0, $charactersLength - 1)];
|
||||
}
|
||||
$pd_details['random_string'] = $randomString;
|
||||
$url = 'https://pdgenie.com/otnew/#/'.$randomString;
|
||||
$url = OFFICER_TRACKING_URL.$randomString;
|
||||
/* $ch = curl_init();
|
||||
$timeout = 5;
|
||||
$url = 'https://ssa.sineedge.com/ot/#/officertracking/'.$randomString;
|
||||
@ -1919,8 +1919,8 @@ public function assignPDTempalate($data)
|
||||
case 18://City Credit Head
|
||||
//Get all PD's which were triggered in this entity id and current city
|
||||
return array('entity' => $user_role_details[0]['fk_entity_id'],'city' => $user_role_details[0]['fk_city']);
|
||||
case 17://Branch Sales
|
||||
case 18://Branch Credit
|
||||
case 19://Branch Sales
|
||||
case 20://Branch Credit
|
||||
//Get all PD's which were triggered in this entity id and current lender user id
|
||||
return array('entity' => $user_role_details[0]['fk_entity_id'],'lender_credit_person' => $lender_user_id);
|
||||
default:
|
||||
@ -1945,7 +1945,7 @@ public function assignPDTempalate($data)
|
||||
$pd_lender = $records['pd_lender'];
|
||||
$pd_applicant_name = strtolower($records['pd_name']);
|
||||
$pd_applicant_lender_ref = strtolower($records['pd_applicant_id']);
|
||||
$pd_officer_name = $records['pd_officer'];
|
||||
$pd_officer_name = isset($records['pd_officer']) ? $records['pd_officer'] : null ;
|
||||
$result_data = $this->PD_Model->PDListwithGlobalFilters($pd_type,$pd_status,$pd_from_date,$pd_to_date,$pd_city,$pd_products,$pd_lender,$pd_applicant_name,$pd_applicant_lender_ref,$pd_officer_name);
|
||||
|
||||
if(count($result_data))
|
||||
@ -5593,7 +5593,7 @@ public function getPDFormDetailsJSON_post()
|
||||
|
||||
//<body style="font-family:Merriweather;font-size:12px;margin:15px 30px">
|
||||
|
||||
//$this->aws_cognito->adminSetUserPassword('aditya.raikar@imgc.com');
|
||||
//$this->aws_cognito->adminSetUserPassword('anuj.vaish@imgc.com');
|
||||
|
||||
//die();
|
||||
$is_regenerate = 0;
|
||||
@ -5604,7 +5604,7 @@ public function getPDFormDetailsJSON_post()
|
||||
//print_r($records);
|
||||
$data['pd_master_details'] = $this->PD_Model->getPDMasterDetails($pdid);
|
||||
$data['applicants_details'] = $this->PD_Model->getApplicantsDetails($pdid);
|
||||
print_r($data['pd_master_details']);die();
|
||||
//print_r($data['pd_master_details']);die();
|
||||
$data['lender_disclaimer'] = $this->PD_Model->selectRecords(ENTITYDISCLAIMER,array('fk_entity_id' => $data['pd_master_details'][0]['fk_lender_id']));
|
||||
|
||||
$data['pd_additional_requirements'] = $this->PD_Model->getPDAdditionalRequirements($pdid);
|
||||
@ -5670,7 +5670,7 @@ public function getPDFormDetailsJSON_post()
|
||||
// $this->getPDImages_post``($fields2,array('fk_pd_id'=>$pdid,'fk_form_id' => $i),PDDOCUMENTS,array(),'','company_id','ASC');
|
||||
// print_r($this->db->last_query());
|
||||
}
|
||||
//print_r($data['pd_processed_forms'][24]);die();
|
||||
//print_r(json_decode($data['pd_processed_forms'][18][0]['processed_json']));die();
|
||||
|
||||
//print_r($data['pd_images']);die(); //print_r(json_decode($data['pd_processed_forms'][14][0]['processed_json'],true));
|
||||
//die();
|
||||
@ -5684,8 +5684,8 @@ public function getPDFormDetailsJSON_post()
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT',$data,true);
|
||||
}
|
||||
//$t = $this->load->view('temp_html.html',null,true);
|
||||
//echo $t;
|
||||
//die();
|
||||
echo $t;
|
||||
die();
|
||||
|
||||
$total_replaces = substr_count($t,'<span class="tooltip">');
|
||||
for($i = 0 ;$i < $total_replaces;$i++)
|
||||
@ -6725,6 +6725,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
$is_show_report = isset($doc['is_show_report']) ? $doc['is_show_report'] : null;
|
||||
//$external_path = $this->config->item('external_data_path');
|
||||
$output_file = $this->external_path."/pd_reports/". $pd_id ."/temp_base64_image.jpeg";
|
||||
|
||||
|
||||
//Generate Random File Name
|
||||
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
||||
@ -6755,7 +6756,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
imagettftext($imagetobewatermark, $fontsize, 0, 120, ($y - 30), $water_mark_text_color, $font, $location_watermarktext);
|
||||
|
||||
imagettftext($imagetobewatermark, $fontsize, 0, 120, ($y - 10), $water_mark_text_color, $font, 'Date: '.date('Y-m-d h:i:s a'));
|
||||
imagejpeg($imagetobewatermark,$output_file);//save as png file in ouputfile location
|
||||
imagejpeg($imagetobewatermark,$output_file,100);//save as png file in ouputfile location
|
||||
//################# end img water marking with text
|
||||
|
||||
|
||||
@ -6765,9 +6766,9 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
$sx = imagesx($curret_file);
|
||||
$sy = imagesy($curret_file);
|
||||
// imagecopyresized ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h , int $src_w , int $src_h ) : bool
|
||||
imagecopyresized ( $curret_file , $pd_logo ,5, ($sy - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
|
||||
imagecopyresampled ( $curret_file , $pd_logo ,5, ($sy - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
|
||||
|
||||
imagejpeg($curret_file,$output_file);// save png image in specified location
|
||||
imagejpeg($curret_file,$output_file,100);// save png image in specified location
|
||||
//###########end of image water marking with logo
|
||||
|
||||
$tempdoc = $output_file;
|
||||
@ -6810,7 +6811,121 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
$result['msg'] = "Some Images Not Saved!";
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function saveBase64Images_new($pd_id,$form_id = null,$company_id = null,$rental_count_id = null,$data)
|
||||
{
|
||||
|
||||
|
||||
$count = 0;
|
||||
$result = array();
|
||||
$pks = array();
|
||||
$pd_details = $this->PD_Model->getPDMasterDetails($pd_id);
|
||||
//print_r($data);die();
|
||||
EXTERNAL_DIR_CHECK::checkExternalDirectory($pd_id);
|
||||
foreach($data as $iter => $doc)
|
||||
{
|
||||
$temp_base64_string = $doc['image'];
|
||||
$title = $doc['Name'];
|
||||
$is_show_report = isset($doc['is_show_report']) ? $doc['is_show_report'] : null;
|
||||
//$external_path = $this->config->item('external_data_path');
|
||||
$output_file = $this->external_path."/pd_reports/". $pd_id ."/temp_base64_image.jpeg";
|
||||
|
||||
|
||||
//Generate Random File Name
|
||||
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
||||
$charactersLength = strlen($characters);
|
||||
$randomString = '';
|
||||
for ($i = 0; $i < 5; $i++) {
|
||||
$randomString .= $characters[rand(0, $charactersLength - 1)];
|
||||
}
|
||||
$temp_file_name = $randomString.date('Y-m-d-H:i:s').'.jpeg';
|
||||
|
||||
|
||||
$ifp = fopen( $output_file, 'wb' );
|
||||
$temp_data = explode( ',', $temp_base64_string );
|
||||
// fwrite( $ifp, base64_decode( $temp_data[ 1 ] ) );
|
||||
//fclose( $ifp );
|
||||
$image_p = imagecreatetruecolor(500, 375);
|
||||
|
||||
|
||||
// ################### start img water marking with text
|
||||
//echo $temp_base64_string;
|
||||
|
||||
$imagetobewatermark = imagecreatefromstring( base64_decode( $temp_data[ 1 ] ));
|
||||
|
||||
$location_watermarktext="Location: ".$doc['link'];
|
||||
$font = APPPATH."docs/robold.ttf"; //metion font and it's location
|
||||
$fontsize="12";
|
||||
$x = imagesx($imagetobewatermark);
|
||||
$y = imagesy($imagetobewatermark);
|
||||
|
||||
$water_mark_text_color = imagecolorallocate($imagetobewatermark, 225, 0, 0);
|
||||
imagettftext($imagetobewatermark, $fontsize, 0, 120, ($y - 30), $water_mark_text_color, $font, $location_watermarktext);
|
||||
|
||||
imagettftext($imagetobewatermark, $fontsize, 0, 120, ($y - 10), $water_mark_text_color, $font, 'Date: '.date('Y-m-d h:i:s a'));
|
||||
|
||||
//imagejpeg($imagetobewatermark,$output_file,100);//save as png file in ouputfile location
|
||||
// die();
|
||||
//################# end img water marking with text
|
||||
|
||||
|
||||
//###########image water marking with logo
|
||||
$pd_logo = imagecreatefromstring(file_get_contents(APPPATH.'docs/icon.png'));
|
||||
$curret_file = $imagetobewatermark;
|
||||
$sx = imagesx($curret_file);
|
||||
$sy = imagesy($curret_file);
|
||||
// imagecopyresized ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h , int $src_w , int $src_h ) : bool
|
||||
//imagecopyresized ( $curret_file , $pd_logo ,5, ($sy - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
|
||||
|
||||
// imagecopyresampled ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h , int $src_w , int $src_h ) : bool
|
||||
imagecopyresampled ( $curret_file , $pd_logo ,5, ($sy - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
|
||||
|
||||
imagejpeg($curret_file,$output_file,100);// save png image in specified location
|
||||
//###########end of image water marking with logo
|
||||
//die();
|
||||
$tempdoc = $output_file;
|
||||
$tempdocname = $temp_file_name;
|
||||
$bucketname = LENDER_BUCKET_NAME_PREFIX.$pd_details[0]['fk_lender_id'];
|
||||
$key = 'pd'.$pd_id.'/'.$tempdocname;
|
||||
// if($form_id != null)
|
||||
// {
|
||||
// $key = 'pd'.$pd_id.'/'.'form'.$form_id.'/'.$tempdocname;
|
||||
// }
|
||||
$sourcefile = $tempdoc;
|
||||
|
||||
$bucket_data = array('bucket_name'=>$bucketname,'key'=>$key,'sourcefile'=>$sourcefile);
|
||||
$s3result= $this->aws_s3->uploadFileToS3Bucket($bucket_data);
|
||||
|
||||
if(is_object($s3result) && $s3result['ObjectURL'] != '' && $s3result['@metadata']['statusCode'] == 200)
|
||||
{
|
||||
$record_data = array('fk_pd_id' => $pd_id,'pd_document_title'=>$title,'pd_document_name'=>$tempdocname,'fk_form_id'=>$form_id,'is_show_report' =>$is_show_report,'rental_count_id' => $rental_count_id,'location' => $doc['link']);
|
||||
$record_data['company_id'] = $company_id ? $company_id : null;
|
||||
$id = $this->PD_Model->saveRecords($record_data,PDDOCUMENTS);
|
||||
if($id != null || $id != "") { $count++; $pks[] = $id;}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if($count == count($data))
|
||||
{
|
||||
//$logger->info('All Images Saved Sucessfully',array($pd_id,$form_id,$company_id));
|
||||
$result['status'] = true;
|
||||
$result['count'] = $count;
|
||||
$result['pks'] = $pks;
|
||||
$result['msg'] = "All Images Saved Successfully";
|
||||
}
|
||||
else
|
||||
{
|
||||
//$logger->info('Some Images Not Saved',array($pd_id,$form_id,$company_id));
|
||||
$result['status'] = true;
|
||||
$result['count'] = $count;
|
||||
$result['pks'] = $pks;
|
||||
$result['msg'] = "Some Images Not Saved!";
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function calculateScore($pdid)
|
||||
{
|
||||
|
||||
@ -160,7 +160,7 @@ class INLINEPHOTOTRANSFORM
|
||||
imagettftext($imagetobewatermark, $fontsize, 0, 120, ($y - 30), $water_mark_text_color, $font, $location_watermarktext);
|
||||
|
||||
imagettftext($imagetobewatermark, $fontsize, 0, 120, ($y - 10), $water_mark_text_color, $font, 'Date: '.date('Y-m-d h:i:s a'));
|
||||
imagejpeg($imagetobewatermark,$output_file);//save as png file in ouputfile location
|
||||
imagejpeg($imagetobewatermark,$output_file,100);//save as png file in ouputfile location
|
||||
//################# end img water marking with text
|
||||
|
||||
//###########image water marking with logo
|
||||
@ -169,9 +169,9 @@ class INLINEPHOTOTRANSFORM
|
||||
$sx = imagesx($curret_file);
|
||||
$sy = imagesy($curret_file);
|
||||
// imagecopyresized ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h , int $src_w , int $src_h ) : bool
|
||||
imagecopyresized ( $curret_file , $pd_logo , 5 , ($y - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
|
||||
imagecopyresampled ( $curret_file , $pd_logo , 5 , ($y - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
|
||||
|
||||
imagejpeg($curret_file,$output_file);// save png image in specified location
|
||||
imagejpeg($curret_file,$output_file,100);// save png image in specified location
|
||||
|
||||
|
||||
//###########end of image water marking with logo
|
||||
|
||||
@ -6,6 +6,9 @@ class Rentalform
|
||||
public static function getRentalText($rental_data){
|
||||
|
||||
//print_r($rental_data);die();
|
||||
|
||||
$rupee_symbol = "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>";
|
||||
|
||||
$address_property = $rental_data['address_property'];
|
||||
$address_property = str_replace("\n",' ',$address_property);
|
||||
$address_property .= ' ,'.$rental_data['city_master'].' ,'.$rental_data['state_master'].' - '.$rental_data['pincode_master'].'.';
|
||||
@ -50,13 +53,13 @@ class Rentalform
|
||||
|
||||
$property_showing_persons_name = substr_replace($property_showing_persons_name,' ',strrpos($property_showing_persons_name,','),1);
|
||||
|
||||
if(strrpos($property_owners_name,','))
|
||||
if(strrpos($property_showing_persons_name,','))
|
||||
{
|
||||
$property_showing_persons_name = substr_replace($property_showing_persons_name,' and ',strrpos($property_showing_persons_name,','),1);
|
||||
}
|
||||
|
||||
$property_document_proof_visted = $rental_data['property_ownership_proof_documents'] == 1 ? 'Yes': 'No';
|
||||
$type_of_document_visited = (substr_count($rental_data['sighted_documents']['name'], 'Others')) ? $rental_data['other_sighted_documents'] : $rental_data['sighted_documents']['name'];
|
||||
$type_of_document_visited = ( $rental_data['property_ownership_proof_documents'] == 1 && substr_count($rental_data['sighted_documents']['name'], 'Others') ) ? $rental_data['other_sighted_documents'] : (isset($rental_data['sighted_documents']['name'] ) ? $rental_data['sighted_documents']['name'] : '');
|
||||
|
||||
$property_remark = $rental_data['rental_remark'];
|
||||
$third_check_details = array();
|
||||
@ -72,25 +75,186 @@ class Rentalform
|
||||
foreach ($rental_data['property_unit_details'] as $u_key => $unit) {
|
||||
|
||||
$temp = array();
|
||||
|
||||
$header_row = '<tr><th style="width:25%;">Particulars</th> <th style="width:25%;">As Per Agreement</th> <th style="width:25%;">As Per Applicant</th> <th style="width:25%;">As Per Tenant</th> </tr>';
|
||||
$first_owners_row = '<tr><td class="customtd">Property Owner Name</td>';
|
||||
$second_lessee_name_row = '<tr><td class="customtd">Lessee Name</td>';
|
||||
$third_area_of_unit_row = '<tr><td class="customtd">Area of Unit</td>';
|
||||
$fourth_payment_mode_row = '<tr><td class="customtd">Payment Mode</td>';
|
||||
$fifth_lease_period_row = '<tr><td class="customtd">Lease Period</td>';
|
||||
$sixth_security_deposit_row = '<tr><td class="customtd">Security Deposit</td>';
|
||||
$eigth_current_rent_received_row = '<tr><td class="customtd">Rent Received (Rs/ per month)</td>';
|
||||
$nineth_difference_between_rent_amount_row = '<tr><td class="customtd">Reason for difference between Rent Amount</td>';
|
||||
//if($unit['tenant_lessees_options'] == 1) { $temp['lesse_name'] = $unit['name_tenant_lessees'];} else { $temp['lesse_name'] = 'Not Available' ; }
|
||||
$temp['agreement_tenant_lessees_name'] = isset($unit['agreement_tenant_lessees_name']) ? $unit['agreement_tenant_lessees_name']: ( isset($unit['name_tenant_lessees']) ? $unit['name_tenant_lessees'] : 'Not Provided <br>('. $unit['name_tenant_lessees_reason'] .')' );
|
||||
$temp['agreement_monthly_rent_amount'] = isset($unit['agreement_monthly_rent_amount']) ? $unit['agreement_monthly_rent_amount'] : $unit['monthly_rent_amount'];
|
||||
$temp['agreement_security_deposit_amount'] = isset($unit['agreement_security_deposit_amount']) ? $unit['agreement_security_deposit_amount']: $unit['securtity_deposit_amount'];
|
||||
$temp['property_cover_area'] = $unit['property_cover_area'] .' '. $unit['unit_measurement']['name'];
|
||||
$temp['payment_mode'] = $unit['payment_mode']['name'].'<br> (';
|
||||
$temp['payment_mode'] .= isset($unit['amount_received_bank']) ? 'from bank: ' . $unit['amount_received_bank'] : '';
|
||||
$temp['payment_mode'] .= isset($unit['amount_received_cash']) ? ' from cash: ' .$unit['amount_received_cash'] : '';
|
||||
$temp['payment_mode'] .= ')';
|
||||
$temp['rent_agreement_executed'] = $unit['is_rent_agreement_executed'] == 1 ? 'Yes' : 'No' ;
|
||||
|
||||
// As per Agreement
|
||||
$owners_name_agreement = '';
|
||||
if(isset($unit['agreement_property_owners_name']) && count($unit['agreement_property_owners_name']))
|
||||
{
|
||||
foreach($unit['agreement_property_owners_name'] as $key => $value)
|
||||
{
|
||||
if($value['id'] != 0)
|
||||
{
|
||||
$owners_name_agreement .= $value['name'].' ,';
|
||||
}
|
||||
else
|
||||
{
|
||||
//$owners_name_agreement .= $value['other_person_met'].' , ';
|
||||
}
|
||||
}
|
||||
|
||||
$owners_name_agreement = substr_replace($owners_name_agreement,' ',strrpos($owners_name_agreement,','),1);
|
||||
|
||||
if(strrpos($owners_name_agreement,','))
|
||||
{
|
||||
$owners_name_agreement = substr_replace($owners_name_agreement,' and ',strrpos($owners_name_agreement,','),1);
|
||||
}
|
||||
}
|
||||
|
||||
// echo $unit['agreement_date'];
|
||||
// echo explode('T',$unit['agreement_date'])[0];
|
||||
// echo date_format(date_create_from_format("Y-m-d",explode('T',$unit['agreement_date'])[0]) ,'M-Y');die();
|
||||
if($owners_name_agreement == '')
|
||||
{
|
||||
$owners_name_agreement = isset($unit['agreement_tenant_lessees_name']) ? $unit['agreement_tenant_lessees_name']:($unit['is_rent_agreement_executed'] != 1 ? 'Rent Agreement Not Executed' : ($unit['rent_agreement_seen'] != 1 ? 'Rent Agreement Not Seen' : ''));
|
||||
}
|
||||
|
||||
$agreement_tenant_lessees_name = isset($unit['agreement_tenant_lessees_name']) ? $unit['agreement_tenant_lessees_name']:($unit['is_rent_agreement_executed'] != 1 ? 'Rent Agreement Not Executed' : ($unit['rent_agreement_seen'] != 1 ? 'Rent Agreement Not Seen' : ''));
|
||||
|
||||
$temp['leease_period'] = isset($unit['agreement_date']) ? 'lease start from '. date_format(date_create_from_format("Y-m-d",explode('T',$unit['agreement_date'])[0]) ,'M-Y') .' to '.date_format(date_create_from_format("d/m/Y",$unit['agreement_expiring_date']),'M-Y') : 'NA';
|
||||
array_push($unit_wise_details,$temp);
|
||||
$lease_period = isset($unit['agreement_date']) ? 'lease start from '. date_format(date_create_from_format("Y-m-d",explode('T',$unit['agreement_date'])[0]) ,'M-Y') .' to '.date_format(date_create_from_format("d/m/Y",$unit['agreement_expiring_date']),'M-Y') : ($unit['is_rent_agreement_executed'] != 1 ? 'Rent Agreement Not Executed' : ($unit['rent_agreement_seen'] != 1 ? 'Rent Agreement Not Seen' : ''));
|
||||
|
||||
$agreement_security_deposit_amount = isset($unit['agreement_security_deposit_amount']) ? $rupee_symbol.' '.$unit['agreement_security_deposit_amount']: ($unit['is_rent_agreement_executed'] != 1 ? 'Rent Agreement Not Executed' : ($unit['rent_agreement_seen'] != 1 ? 'Rent Agreement Not Seen' : ''));
|
||||
|
||||
$agreement_monthly_rent_amount = isset($unit['agreement_monthly_rent_amount']) ? $rupee_symbol.' '.$unit['agreement_monthly_rent_amount'] : ($unit['is_rent_agreement_executed'] != 1 ? 'Rent Agreement Not Executed' : ($unit['rent_agreement_seen'] != 1 ? 'Rent Agreement Not Seen' : ''));
|
||||
|
||||
//As per Applicant
|
||||
$tentant_name_applicant = ( isset($unit['name_tenant_lessees']) ? $unit['name_tenant_lessees'] : 'Not Provided <br>'.(isset($unit['name_tenant_lessees_reason']) ? '('. ($unit['name_tenant_lessees_reason']) .')' : ''));
|
||||
|
||||
$property_cover_area = $unit['property_cover_area'] .' '. $unit['unit_measurement']['name'];
|
||||
|
||||
$payment_mode = $unit['payment_mode']['name'].'<br> (';
|
||||
$payment_mode .= isset($unit['amount_received_bank']) ? 'from bank: ' . $unit['amount_received_bank'] : '';
|
||||
$payment_mode .= isset($unit['amount_received_cash']) ? ' from cash: ' .$unit['amount_received_cash'] : '';
|
||||
$payment_mode .= ')';
|
||||
$payment_mode .= isset($unit['payment_received_reason']) && $unit['payment_received_reason'] != '' ? '<br>Reason for receiving multiple payment Mode - '. $unit['payment_received_reason'] :'';
|
||||
$securtity_deposit_amount = $rupee_symbol.' '.$unit['securtity_deposit_amount'];
|
||||
$monthly_rent_amount = $rupee_symbol.' '.$unit['monthly_rent_amount'];
|
||||
|
||||
|
||||
//As per Tentant
|
||||
$owners_name_tentant = '';
|
||||
if(isset($unit['property_owner_per_met']) && count($unit['property_owner_per_met']))
|
||||
{
|
||||
foreach($unit['property_owner_per_met'] as $key => $value)
|
||||
{
|
||||
if($value['id'] != 0)
|
||||
{
|
||||
$owners_name_tentant .= $value['name'].' ,';
|
||||
}
|
||||
else
|
||||
{
|
||||
$owners_name_tentant .= $unit['property_owner_other_per_met'].' , ';
|
||||
}
|
||||
}
|
||||
|
||||
$owners_name_tentant = substr_replace($owners_name_tentant,' ',strrpos($owners_name_tentant,','),1);
|
||||
|
||||
if(strrpos($owners_name_tentant,','))
|
||||
{
|
||||
$owners_name_tentant = substr_replace($owners_name_tentant,' and ',strrpos($owners_name_tentant,','),1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if($owners_name_tentant == '')
|
||||
{
|
||||
|
||||
$owners_name_tentant = isset($unit['met_tenant_lessees_options']) && $unit['met_tenant_lessees_options'] != 1 ? ('Tenant Not Met'.(isset($unit['name_tenant_lessees_reason_per_met']) ? ('<br>('. $unit['name_tenant_lessees_reason_per_met'].')') :'')) :'';
|
||||
}
|
||||
$name_tenant_lessees_per_met = isset($unit['name_tenant_lessees_per_met']) ? $unit['name_tenant_lessees_per_met'] : ('Tenant Not Met');
|
||||
|
||||
$payment_mode_tentant = isset($unit['payment_mode_per_met']['name']) ? $unit['payment_mode_per_met']['name'].'<br> (' : '';
|
||||
$payment_mode_tentant .= isset($unit['amount_received_bank_per_met']) ? 'from bank: ' . $unit['amount_received_bank_per_met'] : '';
|
||||
$payment_mode_tentant .= isset($unit['amount_received_cash_per_met']) ? ' from cash: ' .$unit['amount_received_cash_per_met'] : '';
|
||||
$payment_mode_tentant .= ')';
|
||||
$payment_mode_tentant = isset($unit['met_tenant_lessees_options']) && $unit['met_tenant_lessees_options'] != 1 ? 'Tenant Not Met' : $payment_mode_tentant;
|
||||
$payment_mode_tentant .= isset($unit['payment_received_reason_per_met']) && $unit['payment_received_reason_per_met'] != '' ? '<br>Reason for receiving multiple mode - '.$unit['payment_received_reason_per_met'] : '';
|
||||
|
||||
$lease_period_tentant = isset($unit['period_of_stay_per_met']) ? $unit['period_of_stay_per_met'].' Months' : 'Tenant Not Met';
|
||||
|
||||
|
||||
$rent_tentant = isset($unit['paid_monthly_rent_per_met']) ? $rupee_symbol.' '.$unit['paid_monthly_rent_per_met'] : 'Tenant Not Met';
|
||||
$payment_difference_per_met = isset($unit['payment_difference_per_met']) ? $unit['payment_difference_per_met'] : 'Tenant Not Met';
|
||||
|
||||
// $temp['agreement_tenant_lessees_name'] = isset($unit['agreement_tenant_lessees_name']) ? $unit['agreement_tenant_lessees_name']: ( isset($unit['name_tenant_lessees']) ? $unit['name_tenant_lessees'] : 'Not Provided <br>('. $unit['name_tenant_lessees_reason'] .')' );
|
||||
// $temp['agreement_monthly_rent_amount'] = isset($unit['agreement_monthly_rent_amount']) ? $unit['agreement_monthly_rent_amount'] : $unit['monthly_rent_amount'];
|
||||
// $temp['agreement_security_deposit_amount'] = isset($unit['agreement_security_deposit_amount']) ? $unit['agreement_security_deposit_amount']: $unit['securtity_deposit_amount'];
|
||||
// $temp['property_cover_area'] = $unit['property_cover_area'] .' '. $unit['unit_measurement']['name'];
|
||||
// $temp['payment_mode'] = $unit['payment_mode']['name'].'<br> (';
|
||||
// $temp['payment_mode'] .= isset($unit['amount_received_bank']) ? 'from bank: ' . $unit['amount_received_bank'] : '';
|
||||
// $temp['payment_mode'] .= isset($unit['amount_received_cash']) ? ' from cash: ' .$unit['amount_received_cash'] : '';
|
||||
// $temp['payment_mode'] .= ')';
|
||||
// $temp['rent_agreement_executed'] = $unit['is_rent_agreement_executed'] == 1 ? 'Yes' : 'No' ;
|
||||
// $temp['rent_agreement_seen'] = isset($unit['rent_agreement_seen']) && $unit['rent_agreement_seen'] == 1 ? 'Yes' : 'No' ;
|
||||
// $temp['rent_agreement_registered'] = isset($unit['rent_agreement_registered']) && $unit['rent_agreement_registered']== 1 ? 'Yes' : 'No' ;
|
||||
|
||||
$first_owners_row .= '<td class="customtd">'. $owners_name_agreement .'</td><td class="customtd">'.$property_owners_name.'</td><td class="customtd">'. $owners_name_tentant .'</td>';
|
||||
$second_lessee_name_row .= '<td class="customtd">'. $agreement_tenant_lessees_name .'</td><td class="customtd">'.$tentant_name_applicant.'</td><td class="customtd">'. $name_tenant_lessees_per_met .'</td>';
|
||||
$third_area_of_unit_row .= '<td class="customtd">-</td><td class="customtd">'.$property_cover_area.'</td><td class="customtd">-</td>';
|
||||
$fourth_payment_mode_row .= '<td class="customtd">-</td><td class="customtd">'. $payment_mode .'</td><td class="customtd">'. $payment_mode_tentant .'</td>';
|
||||
$fifth_lease_period_row .= '<td class="customtd">'. $lease_period .'</td><td class="customtd">-</td><td class="customtd">'. $lease_period_tentant .'</td></tr>';
|
||||
$sixth_security_deposit_row .= '<td class="customtd">' . $agreement_security_deposit_amount . '</td><td class="customtd">'.$securtity_deposit_amount.'</td><td class="customtd">-</td>';
|
||||
$eigth_current_rent_received_row .= '<td class="customtd">' . $agreement_monthly_rent_amount .'</td><td class="customtd">'.$monthly_rent_amount.'</td><td class="customtd">'. $rent_tentant .'</td>';
|
||||
$nineth_difference_between_rent_amount_row .= '<td class="customtd">-</td><td class="customtd">-</td><td class="customtd">'. $payment_difference_per_met .'</td>';
|
||||
|
||||
|
||||
$temp['unit_name'] = 'Unit - '.($u_key + 1);
|
||||
$temp['header_row'] = $header_row;
|
||||
$temp['first_owners_row'] = $first_owners_row.'</tr>';
|
||||
$temp['second_lessee_name_row'] = $second_lessee_name_row.'</tr>';
|
||||
$temp['third_area_of_unit_row'] = $third_area_of_unit_row.'</tr>';
|
||||
$temp['fourth_payment_mode_row'] = $fourth_payment_mode_row.'</tr>';
|
||||
$temp['fifth_lease_period_row'] = $fifth_lease_period_row.'</tr>';
|
||||
$temp['sixth_security_deposit_row'] = $sixth_security_deposit_row.'</tr>';
|
||||
$temp['eigth_current_rent_received_row'] = $eigth_current_rent_received_row.'</tr>';
|
||||
$temp['nineth_difference_between_rent_amount_row'] = $nineth_difference_between_rent_amount_row.'</tr>';
|
||||
|
||||
//$temp['leease_period'] = isset($unit['agreement_date']) ? 'lease start from '. date_format(date_create_from_format("Y-m-d",explode('T',$unit['agreement_date'])[0]) ,'M-Y') .' to '.date_format(date_create_from_format("d/m/Y",$unit['agreement_expiring_date']),'M-Y') : 'NA';
|
||||
//array_push($unit_wise_details['property_core'][],$temp);
|
||||
$unit_wise_details['property_core'][] = $temp;
|
||||
|
||||
}
|
||||
|
||||
$multi_storey = array();
|
||||
$over_all_multistorey_total = 0;
|
||||
if(isset($rental_data['multistoried_building_details']) && count($rental_data['multistoried_building_details']))
|
||||
{
|
||||
//echo 'multistoried_building_details availavle';
|
||||
foreach($rental_data['multistoried_building_details'] as $ml_key => $ml_value)
|
||||
{
|
||||
$multi_storey_temp['floor_name'] = $ml_value['floor_level'];
|
||||
$multi_storey_temp['no_units_in_floor'] = $ml_value['no_units_in_floor'];
|
||||
$multi_storey_temp['same_rent'] = $ml_value['unit_rent_difference_options'] == 1 ? 'Yes' :'No';
|
||||
$multi_storey_temp['total_floor_rent'] = $rupee_symbol.' '.$ml_value['floor_rent_amount'];
|
||||
$over_all_multistorey_total += $ml_value['floor_rent_amount'];
|
||||
if($ml_value['unit_rent_difference_options'] == 1)
|
||||
{
|
||||
$multi_storey_temp['unit_details'] = 'per unit '.$rupee_symbol.' '.$ml_value['floor_unit_details'][0]['rent_per_unit'] ;
|
||||
}
|
||||
else
|
||||
{
|
||||
$units_to_dispaly = '';
|
||||
foreach($ml_value['floor_unit_details'] as $u_k => $u_v)
|
||||
{
|
||||
$units_to_dispaly .= 'Unit-'.($u_k + 1) .' - '.$rupee_symbol.' '.$u_v['rent_per_unit'].'<br>';
|
||||
}
|
||||
$multi_storey_temp['unit_details'] = $units_to_dispaly;
|
||||
}
|
||||
$multi_storey[] = $multi_storey_temp;
|
||||
|
||||
}
|
||||
}
|
||||
//print_r($multi_storey);
|
||||
$unit_wise_details['multistorey'] = $multi_storey;
|
||||
$unit_wise_details['multistorey_over_all_total'] =$over_all_multistorey_total;
|
||||
//print_r($unit_wise_details);
|
||||
return array('address_property' => $address_property,'type_of_property' => $type_of_property,'property_owners_name' => $property_owners_name,'property_showing_persons_name' => $property_showing_persons_name,'property_document_proof_visted' => $property_document_proof_visted,'type_of_document_visited' => $type_of_document_visited,'no_of_floors' => $no_of_floors, 'area_coverd' => $area_coverd,'area_uom' => $area_uom,'unit_details' => $unit_wise_details,'property_remark' => $property_remark,'third_check_details' => $third_check_details,'unit_type' => $unit_type);
|
||||
}
|
||||
|
||||
@ -41,7 +41,8 @@ class PD_Model extends SPARQ_Model {
|
||||
|
||||
if($pdofficerid != "" || $pdofficerid != null)
|
||||
{
|
||||
if($pdofficerid != 52) //support pd officer user id
|
||||
|
||||
if($pdofficerid != 52 && $pdofficerid != 229 ) //support pd officer user id
|
||||
{
|
||||
$this->db->WHERE('PDTRIGGER.fk_pd_allocated_to',$pdofficerid);
|
||||
}
|
||||
@ -77,6 +78,11 @@ class PD_Model extends SPARQ_Model {
|
||||
$this->db->WHERE('PDTRIGGER.fk_city',$lender_details['pd_branch_id']);
|
||||
}
|
||||
|
||||
if(isset($lender_details['lender_credit_person']))
|
||||
{
|
||||
$this->db->WHERE('PDTRIGGER.lender_credit_person',$lender_details['lender_credit_person']);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -114,7 +120,7 @@ class PD_Model extends SPARQ_Model {
|
||||
$this->db->ORDER_BY('PDTRIGGER.pd_id',$sort);
|
||||
$this->db->LIMIT($limit,$page);
|
||||
$result_array = $this->db->GET()->result_array();
|
||||
// print_r($this->db->last_query());die();
|
||||
//print_r($this->db->last_query());die();
|
||||
if(count($result_array) != 0)
|
||||
{
|
||||
foreach($result_array as $key => $result)
|
||||
|
||||
@ -1 +1 @@
|
||||
var page = require('webpage').create();page.viewportSize = { width: 600, height: 350 };page.clipRect = { top: 0, left: 0, width: 600, height: 350 };var score = 75.5;var url = 'http://localhost/AWSEC2/sparqapi/api?'+score;var image_url = 'C:/xampp/htdocs/ssa_external_data/testing/pd_reports/900/chart.png' ;page.open(url,function() {setTimeout(function() {page.render(image_url);phantom.exit();}, 500);});
|
||||
var page = require('webpage').create();page.viewportSize = { width: 600, height: 350 };page.clipRect = { top: 0, left: 0, width: 600, height: 350 };var score = 79;var url = 'http://localhost/AWSEC2/sparqapi/api?'+score;var image_url = 'C:/xampp/htdocs/ssa_external_data/production/pd_reports/23/chart.png' ;page.open(url,function() {setTimeout(function() {page.render(image_url);phantom.exit();}, 500);});
|
||||
@ -844,7 +844,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
else if($bsk == 'vintage_of_business_account')
|
||||
{
|
||||
$answer = isset($business_score['answer']) ? $business_score['answer'] : 'No';
|
||||
$answer = isset($business_score['answer']) && $business_score['answer'] != '' ? $business_score['answer'] : 'No';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -4287,17 +4287,6 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if(isset($GLOBALS['is_rental_available']) && $GLOBALS['is_rental_available'] == 1)
|
||||
{
|
||||
$rental_data = array();
|
||||
$first_owners_row = '<tr><td>Lessor Name / Property Owner Name</td>';
|
||||
$second_lessee_name_row = '<tr><td>Lessee Name</td>';
|
||||
$third_property_address_row = '<tr><td>Property Address</td>';
|
||||
$fourth_type_of_property_row = '<tr><td>Type of Property</td>';
|
||||
$fifth_lease_period_row = '<tr><td>Lease Period</td>';
|
||||
$sixth_structure_of_property_row = '<tr><td>Structure of Property / No of Floors vs Units</td>';
|
||||
$seventh_security_deposit_row = '<tr><td>Security Deposit</td>';
|
||||
$eigth_current_rent_received_row = '<tr><td>Current Rent Received (Rs/ per month)</td>';
|
||||
$nineth_expense_of_management_row = '<tr><td>Remarks</td>';
|
||||
|
||||
|
||||
foreach($pd_processed_forms[17] as $rental_property_key => $rental_property)
|
||||
{
|
||||
//echo $rental_property_key;
|
||||
@ -4314,51 +4303,66 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
foreach ($rental_data as $key => $value) {
|
||||
|
||||
echo '<br><br><b>Property : '.($key + 1).'</b>';
|
||||
echo '<br><b>Property : '.($key + 1).'</b>';
|
||||
echo '<br><br>Address of Property : <b>'.($value['address_property']).'</b>';
|
||||
echo '<br><br>Type of Property : <b>'.($value['type_of_property']).'</b>';
|
||||
echo '<br><br>Name of the Property Owner`s : <b>'.($value['property_owners_name']).'</b>';
|
||||
echo '<br><br>Name of the person`s who showing Property : <b>'.($value['property_showing_persons_name']).'</b>';
|
||||
echo '<br><br>Property Document Proof Visted : <b>'.($value['property_document_proof_visted']).'</b>';
|
||||
echo '<br><br>Property Document Proof Seen : <b>'.($value['property_document_proof_visted']).'</b>';
|
||||
if(!strcasecmp($value['property_document_proof_visted'],'yes')) { echo ' Type of Property Document Visted : <b>'.($value['type_of_document_visited']).'</b>'; }
|
||||
echo '<br><br>Unit Type : <b>' . ($value['unit_type']) . '</b>';
|
||||
echo '<br><br>No of Floors/Units : <b>'.($value['no_of_floors']).'</b>';
|
||||
echo ' '; echo $value['area_coverd'] != "" ? 'Area covered : <b>'.($value['area_coverd'].' '.$value['area_uom'].'</b>') : '';
|
||||
//print_r($value['unit_details']);
|
||||
if(count($value['unit_details']))
|
||||
|
||||
if(isset($value['unit_details']['multistorey']) && count($value['unit_details']['multistorey']))
|
||||
{
|
||||
echo '<br><br><table class="scorecard_table">';
|
||||
echo '<tr> <th>S.No</th> <th>Lessee Name</th> <th>Area of Unit</th> <th>Payment Mode</th> <th>Rent Agreement Executed</th><th>Lease Period</th> <th>Security Deposit</th> <th>Rent Received( per month)</th> </tr>';
|
||||
$unit_wise_total_security_deposit = 0;
|
||||
$unit_wise_total_rent_received = 0;
|
||||
foreach ($value['unit_details'] as $u_key => $unit_value)
|
||||
echo '<p><b>Multistorey Details:</b></p>';
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<tr> <th>Floor Name</th> <th>No of Units</th> <th>Rent same for <br> all Units</th> <th>Unit Details</th> <th>Total <br> Rent Amount</th></tr>';
|
||||
foreach($value['unit_details']['multistorey'] as $multistorey_key => $multistorey_value)
|
||||
{
|
||||
$unit_wise_total_security_deposit += $unit_value['agreement_security_deposit_amount'];
|
||||
$unit_wise_total_rent_received += $unit_value['agreement_monthly_rent_amount'];
|
||||
echo '<tr> <td class="customtd">'. ( $u_key + 1) .'</td> <td>'. $unit_value['agreement_tenant_lessees_name'] .'</td> <td class="customtd"> '. $unit_value['property_cover_area'] .'</td><td class="customtd"> '. $unit_value['payment_mode'] .'</td> <td class="customtd"> '. $unit_value['rent_agreement_executed'] .'</td><td class="customtd"> '. $unit_value['leease_period'] .' </td><td class="customtd"> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($unit_value['agreement_security_deposit_amount']) .' </td><td class="customtd"> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat( $unit_value['agreement_monthly_rent_amount'] ).' </td> </tr>';
|
||||
echo '<tr> <td class="customtd">'. $multistorey_value['floor_name'] .'</td> <td class="customtd">'. $multistorey_value['no_units_in_floor'] .'</td><td class="customtd">'. $multistorey_value['same_rent'] .'</td><td class="customtd">'. $multistorey_value['unit_details'] .'</td><td class="customtd">'. $multistorey_value['total_floor_rent'] .'</td></tr>';
|
||||
}
|
||||
echo '<tr> <td class="customtd" colspan=6>Total</td> <td class="customtd">'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($unit_wise_total_security_deposit) .'</td> <td class="customtd">'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($unit_wise_total_rent_received) .'</td> </tr>';
|
||||
echo '<tr><td class="customtd" colspan="4"> Total </td><td class="customtd">'. $rupee_symbol.' '.$value['unit_details']['multistorey_over_all_total'].'</td></tr>';
|
||||
echo '</table>';
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
echo '<p><b>Unit Details:</b></p>';
|
||||
foreach ($value['unit_details']['property_core'] as $u_key => $unit_value) {
|
||||
echo '<br>';
|
||||
echo $unit_value['unit_name'];
|
||||
echo '<table class="scorecard_table">';
|
||||
echo $unit_value['header_row'];
|
||||
echo $unit_value['first_owners_row'];
|
||||
echo $unit_value['second_lessee_name_row'];
|
||||
echo $unit_value['third_area_of_unit_row'];
|
||||
echo $unit_value['fourth_payment_mode_row'];
|
||||
echo $unit_value['fifth_lease_period_row'];
|
||||
echo $unit_value['sixth_security_deposit_row'];
|
||||
echo $unit_value['eigth_current_rent_received_row'];
|
||||
echo $unit_value['nineth_difference_between_rent_amount_row'];
|
||||
echo '</table>';
|
||||
|
||||
}
|
||||
|
||||
//print_r($value['third_check_details']);
|
||||
if($value['third_check_details']['done_third_party_check'])
|
||||
{
|
||||
echo '<br>For property'.($key + 1).' Third Party check has done with ' . $value['third_check_details']['whom_third_party_check_done'];
|
||||
echo isset($value['third_check_details']['description_third_party_check_done']) ? ' ('. $value['third_check_details']['description_third_party_check_done'].'). ' : ' ';
|
||||
if($value['third_check_details']['rental_rates_third_party_check_done'] != "")
|
||||
{
|
||||
echo 'Rental rates in the area as per person whom third party check is done is '.$value['third_check_details']['rental_rates_third_party_check_done'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if($value['third_check_details']['done_third_party_check'])
|
||||
{
|
||||
echo '<br>For property'.($key + 1).' Third Party check was done with ' . $value['third_check_details']['whom_third_party_check_done'];
|
||||
echo isset($value['third_check_details']['description_third_party_check_done']) ? ' ('. $value['third_check_details']['description_third_party_check_done'].'). ' : ' ';
|
||||
if($value['third_check_details']['rental_rates_third_party_check_done'] != "")
|
||||
{
|
||||
echo 'Rental rates in the area as per person whom third party check is done is '.$value['third_check_details']['rental_rates_third_party_check_done'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
echo '<br>For property '.($key + 1).' Third Party check not done becasue ' .$value['third_check_details']['why_third_party_check_not_done'];
|
||||
}
|
||||
echo '<br>' . $value['property_remark'];
|
||||
echo '<br>For property '.($key + 1).' Third Party check not done.';
|
||||
echo isset($value['third_check_details']['why_third_party_check_not_done']) && $value['third_check_details']['why_third_party_check_not_done'] != "" ?'Resaon - '.$value['third_check_details']['why_third_party_check_not_done'] : '';
|
||||
}
|
||||
echo '<br>' . $value['property_remark'];
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1051,17 +1051,6 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if(isset($pd_processed_forms[17]) && count($pd_processed_forms[17]))
|
||||
{
|
||||
$rental_data = array();
|
||||
$first_owners_row = '<tr><td>Lessor Name / Property Owner Name</td>';
|
||||
$second_lessee_name_row = '<tr><td>Lessee Name</td>';
|
||||
$third_property_address_row = '<tr><td>Property Address</td>';
|
||||
$fourth_type_of_property_row = '<tr><td>Type of Property</td>';
|
||||
$fifth_lease_period_row = '<tr><td>Lease Period</td>';
|
||||
$sixth_structure_of_property_row = '<tr><td>Structure of Property / No of Floors vs Units</td>';
|
||||
$seventh_security_deposit_row = '<tr><td>Security Deposit</td>';
|
||||
$eigth_current_rent_received_row = '<tr><td>Current Rent Received (Rs/ per month)</td>';
|
||||
$nineth_expense_of_management_row = '<tr><td>Remarks</td>';
|
||||
|
||||
|
||||
foreach($pd_processed_forms[17] as $rental_property_key => $rental_property)
|
||||
{
|
||||
//echo $rental_property_key;
|
||||
@ -1078,39 +1067,54 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
foreach ($rental_data as $key => $value) {
|
||||
|
||||
echo '<br><br><b>Property : '.($key + 1).'</b>';
|
||||
echo '<br><b>Property : '.($key + 1).'</b>';
|
||||
echo '<br><br>Address of Property : <b>'.($value['address_property']).'</b>';
|
||||
echo '<br><br>Type of Property : <b>'.($value['type_of_property']).'</b>';
|
||||
echo '<br><br>Name of the Property Owner`s : <b>'.($value['property_owners_name']).'</b>';
|
||||
echo '<br><br>Name of the person`s who showing Property : <b>'.($value['property_showing_persons_name']).'</b>';
|
||||
echo '<br><br>Property Document Proof Visted : <b>'.($value['property_document_proof_visted']).'</b>';
|
||||
echo '<br><br>Property Document Proof Seen : <b>'.($value['property_document_proof_visted']).'</b>';
|
||||
if(!strcasecmp($value['property_document_proof_visted'],'yes')) { echo ' Type of Property Document Visted : <b>'.($value['type_of_document_visited']).'</b>'; }
|
||||
echo '<br><br>Unit Type : <b>' . ($value['unit_type']) . '</b>';
|
||||
echo '<br><br>No of Floors/Units : <b>'.($value['no_of_floors']).'</b>';
|
||||
echo ' '; echo $value['area_coverd'] != "" ? 'Area covered : <b>'.($value['area_coverd'].' '.$value['area_uom'].'</b>') : '';
|
||||
//print_r($value['unit_details']);
|
||||
if(count($value['unit_details']))
|
||||
|
||||
if(isset($value['unit_details']['multistorey']) && count($value['unit_details']['multistorey']))
|
||||
{
|
||||
echo '<br><br><table class="scorecard_table">';
|
||||
echo '<tr> <th>S.No</th> <th>Lessee Name</th> <th>Area of Unit</th> <th>Payment Mode</th> <th>Rent Agreement Executed</th><th>Lease Period</th> <th>Security Deposit</th> <th>Rent Received( per month)</th> </tr>';
|
||||
$unit_wise_total_security_deposit = 0;
|
||||
$unit_wise_total_rent_received = 0;
|
||||
foreach ($value['unit_details'] as $u_key => $unit_value)
|
||||
echo '<p><b>Multistorey Details:</b></p>';
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<tr> <th>Floor Name</th> <th>No of Units</th> <th>Rent same for <br> all Units</th> <th>Unit Details</th> <th>Total <br> Rent Amount</th></tr>';
|
||||
foreach($value['unit_details']['multistorey'] as $multistorey_key => $multistorey_value)
|
||||
{
|
||||
$unit_wise_total_security_deposit += $unit_value['agreement_security_deposit_amount'];
|
||||
$unit_wise_total_rent_received += $unit_value['agreement_monthly_rent_amount'];
|
||||
echo '<tr> <td class="customtd">'. ( $u_key + 1) .'</td> <td>'. $unit_value['agreement_tenant_lessees_name'] .'</td> <td class="customtd"> '. $unit_value['property_cover_area'] .'</td><td class="customtd"> '. $unit_value['payment_mode'] .'</td> <td class="customtd"> '. $unit_value['rent_agreement_executed'] .'</td><td class="customtd"> '. $unit_value['leease_period'] .' </td><td class="customtd"> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($unit_value['agreement_security_deposit_amount']) .' </td><td class="customtd"> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat( $unit_value['agreement_monthly_rent_amount'] ).' </td> </tr>';
|
||||
echo '<tr> <td class="customtd">'. $multistorey_value['floor_name'] .'</td> <td class="customtd">'. $multistorey_value['no_units_in_floor'] .'</td><td class="customtd">'. $multistorey_value['same_rent'] .'</td><td class="customtd">'. $multistorey_value['unit_details'] .'</td><td class="customtd">'. $multistorey_value['total_floor_rent'] .'</td></tr>';
|
||||
}
|
||||
echo '<tr> <td class="customtd" colspan=6>Total</td> <td class="customtd">'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($unit_wise_total_security_deposit) .'</td> <td class="customtd">'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($unit_wise_total_rent_received) .'</td> </tr>';
|
||||
echo '<tr><td class="customtd" colspan="4"> Total </td><td class="customtd">'. $rupee_symbol.' '.$value['unit_details']['multistorey_over_all_total'].'</td></tr>';
|
||||
echo '</table>';
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
echo '<p><b>Unit Details:</b></p>';
|
||||
foreach ($value['unit_details']['property_core'] as $u_key => $unit_value) {
|
||||
echo '<br>';
|
||||
echo $unit_value['unit_name'];
|
||||
echo '<table class="scorecard_table">';
|
||||
echo $unit_value['header_row'];
|
||||
echo $unit_value['first_owners_row'];
|
||||
echo $unit_value['second_lessee_name_row'];
|
||||
echo $unit_value['third_area_of_unit_row'];
|
||||
echo $unit_value['fourth_payment_mode_row'];
|
||||
echo $unit_value['fifth_lease_period_row'];
|
||||
echo $unit_value['sixth_security_deposit_row'];
|
||||
echo $unit_value['eigth_current_rent_received_row'];
|
||||
echo $unit_value['nineth_difference_between_rent_amount_row'];
|
||||
echo '</table>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
//print_r($value['third_check_details']);
|
||||
if($value['third_check_details']['done_third_party_check'])
|
||||
{
|
||||
echo '<br>For property'.($key + 1).' Third Party check has done with ' . $value['third_check_details']['whom_third_party_check_done'];
|
||||
echo '<br>For property'.($key + 1).' Third Party check was done with ' . $value['third_check_details']['whom_third_party_check_done'];
|
||||
echo isset($value['third_check_details']['description_third_party_check_done']) ? ' ('. $value['third_check_details']['description_third_party_check_done'].'). ' : ' ';
|
||||
if($value['third_check_details']['rental_rates_third_party_check_done'] != "")
|
||||
{
|
||||
@ -1120,7 +1124,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
else
|
||||
{
|
||||
|
||||
echo '<br>For property '.($key + 1).' Third Party check not done becasue ' .$value['third_check_details']['why_third_party_check_not_done'];
|
||||
echo '<br>For property '.($key + 1).' Third Party check not done.';
|
||||
echo isset($value['third_check_details']['why_third_party_check_not_done']) && $value['third_check_details']['why_third_party_check_not_done'] != "" ?'Resaon - '.$value['third_check_details']['why_third_party_check_not_done'] : '';
|
||||
}
|
||||
echo '<br>' . $value['property_remark'];
|
||||
|
||||
@ -1301,7 +1306,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
<tr>
|
||||
<td class="customtd"><?php echo (++$oidkey) ?></td>
|
||||
<td class="customtd"><?php echo $oiRow['source']; if(!strcasecmp($oiRow['source'], 'RENTAL INCOME')){ echo '<br>(Details Available in Annexure B)'; $GLOBALS['is_rental_available'] = 1 ; } ?></td>
|
||||
<td class="customtd"><?php echo $oiRow['source']; ?></td>
|
||||
<td class="customtd"><?php echo $oiRow['earned_by'] ?></td>
|
||||
|
||||
<td class="customtd"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($oiRow['amount']).' '.$oiRow['frequency'] ?></td>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user