diff --git a/api/application/controllers/Branch_Controller.php b/api/application/controllers/Branch_Controller.php index 9db41b59..a8ca93cb 100644 --- a/api/application/controllers/Branch_Controller.php +++ b/api/application/controllers/Branch_Controller.php @@ -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() { diff --git a/api/application/controllers/Dash_Board_Controller.php b/api/application/controllers/Dash_Board_Controller.php index 476c44a7..ca5b8b9d 100644 --- a/api/application/controllers/Dash_Board_Controller.php +++ b/api/application/controllers/Dash_Board_Controller.php @@ -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; diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index 7f049edf..e2a75633 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -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,''); //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 diff --git a/api/application/docs/sample.pdf b/api/application/docs/sample.pdf index d8b0c819..4bbdd459 100644 Binary files a/api/application/docs/sample.pdf and b/api/application/docs/sample.pdf differ diff --git a/api/application/docs/temp_base64_image.png b/api/application/docs/temp_base64_image.png index 8e6034f2..1f255f11 100755 Binary files a/api/application/docs/temp_base64_image.png and b/api/application/docs/temp_base64_image.png differ diff --git a/api/application/helpers/InlinePhotoTransform_helper.php b/api/application/helpers/InlinePhotoTransform_helper.php index e6df4b7a..8d73a2fc 100644 --- a/api/application/helpers/InlinePhotoTransform_helper.php +++ b/api/application/helpers/InlinePhotoTransform_helper.php @@ -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++;} } diff --git a/api/application/helpers/assetsform_helper.php b/api/application/helpers/assetsform_helper.php index a56cdb4c..f0d7e659 100644 --- a/api/application/helpers/assetsform_helper.php +++ b/api/application/helpers/assetsform_helper.php @@ -186,7 +186,7 @@ public static function getOthersAssetsDetails($values){ $third_row .= ''. ucfirst($ownership_type) .''; $fourth_row .= ''.$owners_list.''; $fifth_row .= ''.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.$fetchVal['business_approximate_market_value'] : 'NA').''; - $sixth_row .= ''.(($fetchVal['business_monthly_rented_amt'] != "") ? $fetchVal['business_monthly_rented_amt'] : 'NA').''; + $sixth_row .= ''.(($fetchVal['business_monthly_rented_amt'] != "") ? MYUTIL::customIndianNumberFormat($fetchVal['business_monthly_rented_amt']) : 'NA').''; $seventh_row .= ''.($fetchVal['business_vintage'] != "" ? $fetchVal['business_vintage'] : 'NA').''; $eighth_row .= ''.($fetchVal['business_emi'] != "" ? ucfirst($fetchVal['business_emi']) : 'NA').''; } @@ -201,7 +201,7 @@ public static function getOthersAssetsDetails($values){ $third_row .= ''. ucfirst($ownership_type) .''; $fourth_row .= ''.$owners_list.''; $fifth_row .= ''.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.$fetchVal['business_approximate_market_value'] : 'NA').''; - $sixth_row .= ''.(($fetchVal['business_monthly_rented_amt'] != "") ? $fetchVal['business_monthly_rented_amt'] : 'NA').''; + $sixth_row .= ''.(($fetchVal['business_monthly_rented_amt'] != "") ? MYUTIL::customIndianNumberFormat($fetchVal['business_monthly_rented_amt']) : 'NA').''; $seventh_row .= ''.($fetchVal['business_vintage'] != "" ? $fetchVal['business_vintage'] : 'NA').''; $eighth_row .= ''.($fetchVal['business_emi'] != "" ? ucfirst($fetchVal['business_emi']) : 'NA').''; } diff --git a/api/application/models/Dash_Board_Model.php b/api/application/models/Dash_Board_Model.php index 92f05ff0..656ec5f2 100644 --- a/api/application/models/Dash_Board_Model.php +++ b/api/application/models/Dash_Board_Model.php @@ -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(); } diff --git a/api/application/models/PD_Model.php b/api/application/models/PD_Model.php index 8f17df10..2cdd8a39 100644 --- a/api/application/models/PD_Model.php +++ b/api/application/models/PD_Model.php @@ -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'); diff --git a/api/application/views/report_templates/JSONTOREPORT.php b/api/application/views/report_templates/JSONTOREPORT.php index 5c90b493..20e1b44d 100644 --- a/api/application/views/report_templates/JSONTOREPORT.php +++ b/api/application/views/report_templates/JSONTOREPORT.php @@ -439,11 +439,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
-
+

@@ -857,7 +857,10 @@ defined('BASEPATH') OR exit('No direct script access allowed'); $answer = isset($business_score['answer']) ? $business_score['answer'] : ''; } - echo ' '. $business_captions[$bsk] .' '. '
'. ucfirst($answer).' '; + if(strcasecmp($answer,'Not Applicable')) + { + echo ' '. $business_captions[$bsk] .' '. '
'. ucfirst($answer).' '; + } } echo ''; echo ''; @@ -883,7 +886,10 @@ defined('BASEPATH') OR exit('No direct script access allowed'); } + if(strcasecmp($answer,'Not Applicable')) + { echo ' '. $general_captions[$gsk] .' '. '
'. $answer.' '; + } } echo ''; echo ''; @@ -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){ ?> - -
+

Key Products and Area of Operations

+ @@ -1453,8 +1459,8 @@ defined('BASEPATH') OR exit('No direct script access allowed'); 0){ ?> - -
+

Key Products and Area of Operations

+
@@ -1505,8 +1511,8 @@ defined('BASEPATH') OR exit('No direct script access allowed'); 0){ ?> - -
+

Key Products and Area of Operations

+
@@ -1558,8 +1564,8 @@ defined('BASEPATH') OR exit('No direct script access allowed'); 0){ ?> - -
+

Key Products and Area of Operations

+
@@ -1644,14 +1650,14 @@ defined('BASEPATH') OR exit('No direct script access allowed'); As per person`s met, applicant using Mobile Wallets/UPI for business transactions.

'; + echo '

As per Person(s) met, the applicant is using Mobile Wallets/UPI for business transactions.

'; }//else //{ // echo '

As per person`s met,applicant using Mobile Wallets/UPI for business transactions.

' //} if(!strcasecmp($fetchRow['applicant_use_pos_machines'],'yes')) { - echo '

The applicant using the following POS machines:

'; + echo '

The applicant has using the following POS machines:

'; echo '
'; echo ''; foreach($fetchRow['pos_machines_details'] as $pos) @@ -3443,7 +3449,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); $intro_text = ''.$fmValue['selected_person_title'].$fmValue['selected_person'].'Family Information - Select person for capturing family details, who is an applicant in the case, resides at '.$fmValue['residency_address'].'Family Information - Residence Address of Select person .'; $residence_text ='This is a '. $fmValue['residence_ownership'].' Family Information - Ownership of Residence residence, where the applicant has been staying for '. $fmValue['residence_No_of_years'].'Family Information - No of Yrs in current residence .'; - $residence_text .= (!strcasecmp($fmValue['residence_ownership'],'rented')) ? ' The rent paid Rs.'.$fmValue['rent'].' per month.' : ''; + $residence_text .= (!strcasecmp($fmValue['residence_ownership'],'rented')) ? ' The rent paid '.$rupee_symbol.' '.$fmValue['rent'].' per month.' : ''; echo $intro_text;echo "

";echo $residence_text; @@ -3665,14 +3671,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
Name of the Financial Insitution TID Number of POS machine
@@ -3884,7 +3890,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
Detailed Score Card Section" ;
-
Polite
+
Polite
-
Rude
+
Rude
-
Others*
+
Others*