INLINE PHO”HOTO PD REPORT FEEDBACKS

This commit is contained in:
Velz2020 2019-07-17 20:18:00 +05:30
parent 3218738775
commit 07f9377a44
10 changed files with 107 additions and 49 deletions

View File

@ -258,6 +258,14 @@ class Branch_Controller extends REST_Controller {
}
}
public function functionQCAudit_get()
{
$_1 = 'C:\Users\Venba\Desktop\1.html';
$_2 = 'C:\Users\Venba\Desktop\2.html';
$_3 = 'C:\Users\Venba\Desktop\3.diff';
$res = xdiff_file_diff( $_1,$_2,$_3);
echo $res;
}
public function testCognito_post()
{

View File

@ -87,9 +87,17 @@ class Dash_Board_Controller extends REST_Controller {
}
public function PD_MIS_report_get()
public function PD_MIS_report_post()
{
$res = $this->Dash_Board_Model->PD_MIS_report();
$filter_params = ($this->post());
$applicant_id = isset($filter_params['applicant_id']) && $filter_params['applicant_id'] != '' ? $filter_params['applicant_id'] : null;
$from_date = isset($filter_params['from_date']) && $filter_params['from_date'] != '' ? $filter_params['from_date'] : null;
$to_date = isset($filter_params['to_date']) && $filter_params['to_date'] != '' ? $filter_params['to_date'] : null;
$city = isset($filter_params['city']) && $filter_params['city'] != '' ? $filter_params['city'] : null;
$branch = isset($filter_params['branch']) && $filter_params['branch'] != '' ? $filter_params['branch'] : null;
$res = $this->Dash_Board_Model->PD_MIS_report($applicant_id,$from_date,$to_date,$city,$branch);
$data['dataStatus'] = true;
$data['status'] = REST_Controller::HTTP_OK;

View File

@ -473,7 +473,7 @@ class PD_Controller extends REST_Controller {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
$pd_details['random_string'] = $randomString;
$url = 'https://ssa.sineedge.com/officertracking/#/officertracking/'.$randomString;
$url = 'https://pdgenie.com/officertracking/#/officertracking/'.$randomString;
/* $ch = curl_init();
$timeout = 5;
$url = 'https://ssa.sineedge.com/ot/#/officertracking/'.$randomString;
@ -1786,7 +1786,8 @@ class PD_Controller extends REST_Controller {
$pd_lender = $records['pd_lender'];
$pd_applicant_name = strtolower($records['pd_name']);
$pd_applicant_lender_ref = strtolower($records['pd_applicant_id']);
$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 = $records['pd_officer'];
$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))
{
@ -2232,7 +2233,7 @@ class PD_Controller extends REST_Controller {
$records = INLINEPHOTOTRANSFORM::retransformGeneralFormInlinePhotos($records);
}
if($formid == 10)
{
$this->updateSubProductFromLoanDetailsForm($records);
@ -2244,7 +2245,7 @@ class PD_Controller extends REST_Controller {
$this->saveEmpSalaryAsBusinessExpensesFromBusinessForm($records);
$records = INLINEPHOTOTRANSFORM::retransformBusinessFormInlinePhotos($records);
}
if($formid == 22)
{
$this->saveAssetRentAsBusinessExpensesFromBusinessAssestForm($records);
@ -5120,8 +5121,8 @@ class PD_Controller extends REST_Controller {
//echo "*******************************************";
$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">');
//echo $total_replaces;
@ -6152,11 +6153,14 @@ class PD_Controller extends REST_Controller {
$imagetobewatermark = imagecreatefromstring(file_get_contents($output_file));
$location_watermarktext="Location: ".$doc['link'];
$font=APPPATH."docs/robold.ttf"; //metion font and it's location
$fontsize="7";
$water_mark_text_color = imagecolorallocate($imagetobewatermark, 55, 55, 55);
imagettftext($imagetobewatermark, $fontsize, 0, 5, 10, $water_mark_text_color, $font, $location_watermarktext);
$fontsize="12";
$x = imagesy($imagetobewatermark);
$y = imagesy($imagetobewatermark);
imagettftext($imagetobewatermark, $fontsize, 0, 5, 20, $water_mark_text_color, $font, 'Date: '.date('Y-m-d h:i:s a'));
$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'));
imagepng($imagetobewatermark,$output_file);//save as png file in ouputfile location
//################# end img water marking with text
@ -6167,7 +6171,7 @@ class PD_Controller extends REST_Controller {
$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 , ($sx - 50) , ($sy - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
imagecopyresized ( $curret_file , $pd_logo ,5, ($sy - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
imagepng($curret_file,$output_file);// save png image in specified location
//###########end of image water marking with logo

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 355 KiB

View File

@ -32,6 +32,7 @@ class INLINEPHOTOTRANSFORM
public static function retransformBusinessFormInlinePhotos($records)
{
$CI =&get_instance();
$pd_details =$CI->PD_Model->getPDMasterDetails($records['pdid']);
$busienss_info_location = (isset($records['business_info_location']) ? $records['business_info_location'] : null);
@ -141,26 +142,30 @@ class INLINEPHOTOTRANSFORM
$imagetobewatermark=imagecreatefromstring(file_get_contents(($output_file)));
$location_watermarktext="Location: ".($location != null ? $location: $pd_details[0]['start_location']);
$font=APPPATH."docs/robold.ttf"; //metion font and it's location
$fontsize="7";
$water_mark_text_color = imagecolorallocate($imagetobewatermark, 234, 100, 81);
imagettftext($imagetobewatermark, $fontsize, 0, 5, 10, $water_mark_text_color, $font, $location_watermarktext);
$fontsize="12";
$water_mark_text_color = imagecolorallocate($imagetobewatermark, 225, 0, 0);
$x = imagesy($imagetobewatermark);
$y = imagesy($imagetobewatermark);
imagettftext($imagetobewatermark, $fontsize, 0, 120, ($y - 30), $water_mark_text_color, $font, $location_watermarktext);
imagettftext($imagetobewatermark, $fontsize, 0, 5, 20, $water_mark_text_color, $font, 'Date: '.date('Y-m-d h:i:s a'));
imagettftext($imagetobewatermark, $fontsize, 0, 120, ($y - 10), $water_mark_text_color, $font, 'DateB: '.date('Y-m-d h:i:s a'));
imagepng($imagetobewatermark,$output_file);//save as png file in ouputfile location
//################# end img water marking with text
//###########image water marking with logo
$pd_logo = imagecreatefromstring(file_get_contents(APPPATH.'docs/icon.png'));
$curret_file = imagecreatefromstring(file_get_contents($output_file));
$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 , ($sx - 50) , ($sy - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
imagecopyresized ( $curret_file , $pd_logo , 5 , ($y - 54) , 0 , 0 , 50 , 50 , 50 , 54 );
imagepng($curret_file,$output_file);// save png image in specified location
//###########end of image water marking with logo
//self::saveImagesInS3($CI,$pd_details,$output_file,$temp_file_name,$form_id,$title,$company_id);
self::saveImagesInS3($CI,$pd_details,$output_file,$temp_file_name,$form_id,$title,$company_id);
//convert img to base64
//$path = $output_file;
//$type = pathinfo($path, PATHINFO_EXTENSION);
@ -172,7 +177,7 @@ class INLINEPHOTOTRANSFORM
}
public static function saveImagesInS3($CI,$pd_details,$output_file,$temp_file_name,$form_id,$title)
public static function saveImagesInS3($CI,$pd_details,$output_file,$temp_file_name,$form_id,$title,$company_id = null)
{
$tempdoc = $output_file;
$tempdocname = $temp_file_name;
@ -186,7 +191,7 @@ class INLINEPHOTOTRANSFORM
if(is_object($s3result) && $s3result['ObjectURL'] != '' && $s3result['@metadata']['statusCode'] == 200)
{
$record_data = array('fk_pd_id' => $pd_details[0]['pd_id'],'pd_document_title'=>$title,'pd_document_name'=>$tempdocname,'fk_form_id'=>$form_id);
$record_data = array('fk_pd_id' => $pd_details[0]['pd_id'],'pd_document_title'=>$title,'pd_document_name'=>$tempdocname,'fk_form_id'=>$form_id,'company_id' => $company_id);
$id = $CI->PD_Model->saveRecords($record_data,PDDOCUMENTS);
//if($id != null || $id != "") { $count++;}
}

View File

@ -186,7 +186,7 @@ public static function getOthersAssetsDetails($values){
$third_row .= '<td class="customtd">'. ucfirst($ownership_type) .'</td>';
$fourth_row .= '<td class="customtd">'.$owners_list.'</td>';
$fifth_row .= '<td class="customtd">'.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.$fetchVal['business_approximate_market_value'] : 'NA').'</td>';
$sixth_row .= '<td class="customtd">'.(($fetchVal['business_monthly_rented_amt'] != "") ? $fetchVal['business_monthly_rented_amt'] : 'NA').'</td>';
$sixth_row .= '<td class="customtd">'.(($fetchVal['business_monthly_rented_amt'] != "") ? MYUTIL::customIndianNumberFormat($fetchVal['business_monthly_rented_amt']) : 'NA').'</td>';
$seventh_row .= '<td class="customtd">'.($fetchVal['business_vintage'] != "" ? $fetchVal['business_vintage'] : 'NA').'</td>';
$eighth_row .= '<td class="customtd">'.($fetchVal['business_emi'] != "" ? ucfirst($fetchVal['business_emi']) : 'NA').'</td>';
}
@ -201,7 +201,7 @@ public static function getOthersAssetsDetails($values){
$third_row .= '<td class="customtd">'. ucfirst($ownership_type) .'</td>';
$fourth_row .= '<td class="customtd">'.$owners_list.'</td>';
$fifth_row .= '<td class="customtd">'.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.$fetchVal['business_approximate_market_value'] : 'NA').'</td>';
$sixth_row .= '<td class="customtd">'.(($fetchVal['business_monthly_rented_amt'] != "") ? $fetchVal['business_monthly_rented_amt'] : 'NA').'</td>';
$sixth_row .= '<td class="customtd">'.(($fetchVal['business_monthly_rented_amt'] != "") ? MYUTIL::customIndianNumberFormat($fetchVal['business_monthly_rented_amt']) : 'NA').'</td>';
$seventh_row .= '<td class="customtd">'.($fetchVal['business_vintage'] != "" ? $fetchVal['business_vintage'] : 'NA').'</td>';
$eighth_row .= '<td class="customtd">'.($fetchVal['business_emi'] != "" ? ucfirst($fetchVal['business_emi']) : 'NA').'</td>';
}

View File

@ -202,11 +202,34 @@ class Dash_Board_Model extends SPARQ_Model {
}
public function PD_MIS_report()
public function PD_MIS_report($applicant_id = null,$from_date = null,$to_date = null,$city = null,$branch = null)
{
$this->db->select('*');
$this->db->from(PDMIS);
$this->db->SELECT('*');
$this->db->FROM(PDMIS);
if($applicant_id != null)
{
$this->db->LIKE('application_id',$applicant_id);
}
if($from_date != null)
{
$this->db->WHERE('date(triggered)>=',$from_date);
}
if($to_date != null)
{
$this->db->WHERE('date(triggered)<=',$to_date);
}
if($city != null)
{
$this->db->LIKE('city',$city);
}
if($branch != null)
{
$this->db->LIKE('branch',$branch);
}
$query = $this->db->get();
//print_r($this->db->last_query());
return $query->result();
}

View File

@ -124,7 +124,7 @@ class PD_Model extends SPARQ_Model {
//PD List with Common Filters
public function PDListwithGlobalFilters($pd_type,$pd_status,$pd_from_date,$pd_to_date,$pd_city,$pd_products,$pd_lender,$pd_applicant_name,$pd_applicant_lender_ref)
public function 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)
{
$this->db->SELECT('PDTRIGGER.pd_id, PDTRIGGER.fk_lender_id,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name,PDTRIGGER.fk_entity_billing_id,ENTITYBILLING.billing_name, PDTRIGGER.lender_applicant_id, DATE_FORMAT(PDTRIGGER.pd_date_of_initiation, "%d/%m/%Y") as pd_date_of_initiation, PDTRIGGER.fk_product_id,PRODUCTS.name as product_name,PRODUCTS.abbr as product_abbr, PDTRIGGER.fk_subproduct_id,SUBPRODUCTS.name as subproduct_name,SUBPRODUCTS.abbr as subproduct_abbr, PDTRIGGER.fk_pd_type,PDTYPE.type_name as pd_type_name, PDTRIGGER.pd_status,PDTRIGGER.pd_specific_clarification, DATE_FORMAT(PDTRIGGER.createdon,"%d/%m/%Y %H:%i:%s") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i:%s") as updatedon, PDTRIGGER.fk_updatedby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, PDTRIGGER.fk_pd_allocation_type,,PDALLOCATIONTYPE.pd_allocation_type_name, PDTRIGGER.fk_pd_allocated_to,concat(USERPROFILE2.first_name," ",USERPROFILE2.last_name) as pd_allocated_to,PDTRIGGER.executive_id,concat(EXECUTIVE.first_name," ",EXECUTIVE.last_name) as executive_name,PDTRIGGER.central_pd_officer_id,concat(CENTRALOFFICER.first_name," ",CENTRALOFFICER.last_name) as centralofficer,PDTRIGGER.fk_pd_template_id,TEMPLATE.template_name, PDTRIGGER.fk_customer_segment,CUSTOMERSEGMENT.name as customer_segment_name,CUSTOMERSEGMENT.abbr as customer_segment_abbr, PDTRIGGER.pd_officier_final_judgement, PDTRIGGER.pd_agency_id,AGENCY.full_name as agency_name, PDTRIGGER.loan_amount,PDTRIGGER.addressline1,PDTRIGGER.addressline2,PDTRIGGER.addressline3,PDTRIGGER.fk_city,CITY.name as city_name,PDTRIGGER.fk_state,STATE.name as state_name,PINCODE.pincode,PDTRIGGER.pincode as pincode_id,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDTRIGGER.other_pincode,PDAPPLICANTSDETAILS.applicant_name,PDTRIGGER.is_otp_done,PDTRIGGER.is_child');
@ -188,6 +188,10 @@ class PD_Model extends SPARQ_Model {
{
$this->db->LIKE('PDAPPLICANTSDETAILS.applicant_name',"$pd_applicant_name");
}
if($pd_officer_name != "" || $pd_officer_name != null )
{
$this->db->LIKE('concat(USERPROFILE2.first_name," ",USERPROFILE2.last_name)',$pd_officer_name);
}
$this->db->ORDER_BY('PDTRIGGER.pd_id','DESC');
@ -408,7 +412,7 @@ class PD_Model extends SPARQ_Model {
$arrayForText = array("fk_lender_id" => "Lender", "fk_entity_billing_id" => "Billing ID", "lender_applicant_id" => "Applicant Ref ID", "pd_date_of_initiation" => "PD Date of Initiation", "fk_product_id" => "Product", "fk_subproduct_id" => "Sub Product","fk_pd_type" => "PD Type", "pd_status" => "PD Status", "pd_specific_clarification"=> "PD Specific Clarification","fk_pd_allocation_type" => "Allocation Type", "fk_pd_allocated_to" => "Allocated Person", "fk_pd_template_id" => "PD Tempale", "fk_customer_segment" => "Customer Segment", "pd_officier_final_judgement" => "PD Officer Finale Judgement", "pd_agency_id" => "PD Agency", "loan_amount" => "Loan Amount", "addressline1" => "Addressline1", "addressline2" => "Addressline1", "addressline3" => "Addressline1", "fk_city" => "City", "fk_state" => "State", "pincode" => "Pincode", "bounce_reason" => "Bounce Reason", "executive_id" => "PD Executive","central_pd_officer_id"=>"Central PD Officer","pd_contact_person" => "Lender Contact Person", "pd_contact_mobileno" => "Lender Contact Mobile Number", "scheduled_on" => "Scheduled On", "completed_on" => "Completed On",'fk_address_id' => 'PD Address Map','fk_primary_address_id' => 'Primary Address');
$this->db->SELECT('COMMONMASTER.log_id, COMMONMASTER.primary_key, COMMONMASTER.table_name, COMMONMASTER.field_name, COMMONMASTER.old_value, COMMONMASTER.new_value, COMMONMASTER.fk_createdby, DATE_FORMAT(COMMONMASTER.createdon,"%dth %b %Y at %h:%i:%s %p") as createdon,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,ENTITYBILLINGOLD.billing_name as old_billing_name,ENTITYBILLINGNEW.billing_name as new_billing_name,ENTITYOLD.full_name as old_entity_name,ENTITYNEW.full_name as new_entity_name,PRODUCTSOLD.abbr as old_product,PRODUCTSNEW.abbr as new_product,SUBPRODUCTSOLD.abbr as old_sub_product,SUBPRODUCTSNEW.abbr as new_sub_product,PDTYPEOLD.type_name as old_type_name,PDTYPENEW.type_name as new_type_name,concat(ALLOCATEDOLD.first_name," ",ALLOCATEDOLD.last_name) as old_allocated_to,concat(ALLOCATEDNEW.first_name," ",ALLOCATEDNEW.last_name) as new_allocated_to,TEMPLATEOLD.template_name as old_template_name,TEMPLATENEW.template_name as new_template_name,CUSTOMERSEGMENTOLD.name as old_cs_name,CUSTOMERSEGMENTNEW.name as new_cs_name,AGENCYOLD.full_name as old_agencyname,AGENCYNEW.full_name as new_agencyname,CITYOLD.name as old_city,CITYNEW.name as new_city,STATEOLD.name as old_state,STATENEW.name as new_state,concat(EXECUTIVEOLD.first_name," ",EXECUTIVEOLD.last_name) as old_executive,concat(EXECUTIVENEW.first_name," ",EXECUTIVENEW.last_name) as new_executive,concat(CENTRALPDOLD.first_name," ",CENTRALPDOLD.last_name) as old_central_pd_officer_id,concat(CENTRALPDNEW.first_name," ",CENTRALPDNEW.last_name) as new_central_pd_officer_id,ALLOCATIONOLD.pd_allocation_type_name as old_allocation_type,ALLOCATIONNEW.pd_allocation_type_name as new_allocation_type,BOUNCEMASTEROLD.bounce_reason_name as old_bounce_reason,BOUNCEMASTERNEW.bounce_reason_name as new_bounce_reason,PINCODEOLD.pincode as old_pincode,PINCODENEW.pincode as new_pincode,PDTRIGGER.other_pincode');
$this->db->SELECT('COMMONMASTER.log_id, COMMONMASTER.primary_key, COMMONMASTER.table_name, COMMONMASTER.field_name, COMMONMASTER.old_value, COMMONMASTER.new_value, COMMONMASTER.fk_createdby, DATE_FORMAT(COMMONMASTER.createdon,"%D %b %Y at %h:%i:%s %p") as createdon,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,ENTITYBILLINGOLD.billing_name as old_billing_name,ENTITYBILLINGNEW.billing_name as new_billing_name,ENTITYOLD.full_name as old_entity_name,ENTITYNEW.full_name as new_entity_name,PRODUCTSOLD.abbr as old_product,PRODUCTSNEW.abbr as new_product,SUBPRODUCTSOLD.abbr as old_sub_product,SUBPRODUCTSNEW.abbr as new_sub_product,PDTYPEOLD.type_name as old_type_name,PDTYPENEW.type_name as new_type_name,concat(ALLOCATEDOLD.first_name," ",ALLOCATEDOLD.last_name) as old_allocated_to,concat(ALLOCATEDNEW.first_name," ",ALLOCATEDNEW.last_name) as new_allocated_to,TEMPLATEOLD.template_name as old_template_name,TEMPLATENEW.template_name as new_template_name,CUSTOMERSEGMENTOLD.name as old_cs_name,CUSTOMERSEGMENTNEW.name as new_cs_name,AGENCYOLD.full_name as old_agencyname,AGENCYNEW.full_name as new_agencyname,CITYOLD.name as old_city,CITYNEW.name as new_city,STATEOLD.name as old_state,STATENEW.name as new_state,concat(EXECUTIVEOLD.first_name," ",EXECUTIVEOLD.last_name) as old_executive,concat(EXECUTIVENEW.first_name," ",EXECUTIVENEW.last_name) as new_executive,concat(CENTRALPDOLD.first_name," ",CENTRALPDOLD.last_name) as old_central_pd_officer_id,concat(CENTRALPDNEW.first_name," ",CENTRALPDNEW.last_name) as new_central_pd_officer_id,ALLOCATIONOLD.pd_allocation_type_name as old_allocation_type,ALLOCATIONNEW.pd_allocation_type_name as new_allocation_type,BOUNCEMASTEROLD.bounce_reason_name as old_bounce_reason,BOUNCEMASTERNEW.bounce_reason_name as new_bounce_reason,PINCODEOLD.pincode as old_pincode,PINCODENEW.pincode as new_pincode,PDTRIGGER.other_pincode');
$this->db->FROM(COMMONMASTER.' as COMMONMASTER');
$this->db->JOIN(USERPROFILE.' as USERPROFILE','COMMONMASTER.fk_createdby = USERPROFILE.userid','LEFT');
$this->db->JOIN(ENTITYBILLING.' as ENTITYBILLINGOLD','COMMONMASTER.old_value = ENTITYBILLINGOLD.entity_billing_id','LEFT');

View File

@ -439,11 +439,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<footer>
<hr>
Copyright@Sineedge
Powered by PDGenie
</footer>
<header>
<div><img style="width:150;height:50px;opacity: 0.5;" src='http://ssa.sineedge.com/sparqapi/logo/sinelogo.png' /></div>
<div><img style="width:50px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<hr>
</header>
@ -857,7 +857,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$answer = isset($business_score['answer']) ? $business_score['answer'] : '';
}
echo '<tr> <td style="width:70%;">'. $business_captions[$bsk] .'</td> <td style="width:30%;">'. '<div id="'. $class .'"></div></td> <td class="customtd">'. ucfirst($answer).'</td> </tr>';
if(strcasecmp($answer,'Not Applicable'))
{
echo '<tr> <td style="width:70%;">'. $business_captions[$bsk] .'</td> <td style="width:30%;">'. '<div id="'. $class .'"></div></td> <td class="customtd">'. ucfirst($answer).'</td> </tr>';
}
}
echo '</tbody>';
echo '</table>';
@ -883,7 +886,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
if(strcasecmp($answer,'Not Applicable'))
{
echo '<tr> <td style="width:70%;">'. $general_captions[$gsk] .'</td> <td style="width:30%;">'. '<div id="'. $class .'"></div></td> <td class="customtd">'. $answer.'</td> </tr>';
}
}
echo '</tbody>';
echo '</table>';
@ -1020,7 +1026,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$locality = preg_match("/^[aeiouAEIOU]/U", $locality) ? 'an '.$locality : 'a '.$locality;
$comment_locality_master = preg_match("/^[aeiouAEIOU]/U", $pd_address['comment_locality_master']) ? 'an '.$pd_address['comment_locality_master'] : 'a '.$pd_address['comment_locality_master'];
$property_owner_type = $business_assets_details['business_assets_for_address'][0]['business_ownership_type'];
if($property_owner_type == 'rented') { $property_owner_type ='Rented (Rent Rs'.$business_assets_details['business_assets_for_address'][0]['business_monthly_rented_amt'].' Per Month)'; }else{$property_owner_type = 'Owned'; }
if($property_owner_type == 'rented') { $property_owner_type ='Rented (Rent '.$rupee_symbol.' '.$business_assets_details['business_assets_for_address'][0]['business_monthly_rented_amt'].' Per Month)'; }else{$property_owner_type = 'Owned'; }
$yrs_being_run = $business_assets_details['business_assets_for_address'][0]['business_years'].' Years';
if($business_assets_details['business_assets_for_address'][0]['business_month'] != ""){ $yrs_being_run.= ' and '.$business_assets_details['business_assets_for_address'][0]['business_month'].' Months';}
@ -1400,8 +1406,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
//
if(count($fetchRow['manufacturing']) >0){ ?>
<!-- <div> -->
<!-- <p> Type of Business Activity : Manufacturing</p> -->
<br>
<p> Key Products and Area of Operations</p>
<!-- <br> -->
<!-- </div> -->
<table class="scorecard_table">
@ -1453,8 +1459,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php if(count($fetchRow['retail']) >0){ ?>
<!-- <div> -->
<!-- <p> Type of Business Activity : Retail Trading</p> -->
<br>
<p> Key Products and Area of Operations</p>
<!-- <br> -->
<!-- </div> -->
<table class="scorecard_table">
@ -1505,8 +1511,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php if(count($fetchRow['serviceprovider']) >0){ ?>
<!-- <div> -->
<!-- <p> Type of Business Activity : Service Provider</p> -->
<br>
<p> Key Products and Area of Operations</p>
<!-- <br> -->
<!-- </div> -->
<table class="scorecard_table">
@ -1558,8 +1564,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php if(count($fetchRow['wholesale']) >0){ ?>
<!-- <div> -->
<!-- <p> Type of Business Activity : Wholesale Trading</p> -->
<br>
<p> Key Products and Area of Operations</p>
<!-- <br> -->
<!-- </div> -->
<table class="scorecard_table">
@ -1644,14 +1650,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php
if(!strcasecmp($fetchRow['applicant_use_mobile_wallets'],'yes'))
{
echo '<p>As per person`s met, applicant using Mobile Wallets/UPI for business transactions.</p>';
echo '<p>As per Person(s) met, the applicant is using Mobile Wallets/UPI for business transactions.</p>';
}//else
//{
// echo '<p>As per person`s met,applicant using Mobile Wallets/UPI for business transactions.</p>'
//}
if(!strcasecmp($fetchRow['applicant_use_pos_machines'],'yes'))
{
echo '<p>The applicant using the following POS machines:</p>';
echo '<p>The applicant has using the following POS machines:</p>';
echo '<table class="scorecard_table">';
echo '<tr> <th>Name of the Financial Insitution</th> <th>TID Number of POS machine</th> </tr>';
foreach($fetchRow['pos_machines_details'] as $pos)
@ -3443,7 +3449,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$intro_text = '<span class="tooltip">'.$fmValue['selected_person_title'].$fmValue['selected_person'].'<span class="tooltiptext">Family Information - Select person for capturing family details</span></span>, <span contenteditable="true">who is an applicant in the case, resides at </span><span class="tooltip">'.$fmValue['residency_address'].'<span class="tooltiptext">Family Information - Residence Address of Select person </span></span><span contenteditable="true">.</span>';
$residence_text ='<span contenteditable="true">This is a </span><span class="tooltip">'. $fmValue['residence_ownership'].' <span class="tooltiptext">Family Information - Ownership of Residence </span></span><span contenteditable="true"> residence, where the applicant has been staying for </span><span class="tooltip">'. $fmValue['residence_No_of_years'].'<span class="tooltiptext">Family Information - No of Yrs in current residence </span></span><span contenteditable="true">.</span>';
$residence_text .= (!strcasecmp($fmValue['residence_ownership'],'rented')) ? '<span contenteditable="true"> The rent paid Rs.</span>'.$fmValue['rent'].'<span contenteditable="true"> per month.</span>' : '';
$residence_text .= (!strcasecmp($fmValue['residence_ownership'],'rented')) ? '<span contenteditable="true"> The rent paid '.$rupee_symbol.' </span>'.$fmValue['rent'].'<span contenteditable="true"> per month.</span>' : '';
echo $intro_text;echo "<br><br>";echo $residence_text;
@ -3665,14 +3671,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<table>
<tr>
<td>
<div id="first_div" style="border-color:green;color:green;">Polite</div> <div id="tick_div" style="border-color:green;color:green;"><?php if($polite){ echo $tick_mark; } ?></div>
<div id="first_div" style="border-color:green;color:black;">Polite</div> <div id="tick_div" style="border-color:green;color:black;"><?php if($polite){ echo $tick_mark; } ?></div>
</td>
<td style="padding-left:50px;">
<div id="first_div" style="border-color:red;color:red;">Rude</div> <div id="tick_div" style="border-color:red;color:red;"><?php if($rude){ echo $tick_mark; } ?></div>
<div id="first_div" style="border-color:red;color:black;">Rude</div> <div id="tick_div" style="border-color:red;color:black;"><?php if($rude){ echo $tick_mark; } ?></div>
</td>
<?php if(!is_null($other_behaviour)){ ?>
<td style="padding-left:50px;">
<div id="first_div" style="border-color:red;color:red;">Others*</div> <div id="tick_div" style="border-color:red;color:red;"><?php if($other_behaviour){ echo $tick_mark; } ?></div>
<div id="first_div" style="border-color:red;color:black;">Others*</div> <div id="tick_div" style="border-color:red;color:black;"><?php if($other_behaviour){ echo $tick_mark; } ?></div>
</td>
<?php } ?>
</tr>
@ -3884,7 +3890,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<div id="page_break"></div>
<?php
$show_detailed_scorecard = 1;
$show_detailed_scorecard = null;
if($show_detailed_scorecard)
{
echo "<h3>Detailed Score Card Section</h3>" ;