ENTITY API NOTIFICATION FOR SALES ANS CREDIT PD REPORT
This commit is contained in:
parent
4ddd9dbb4f
commit
5b36c708c7
@ -579,5 +579,8 @@ defined('PURCHASEDECLAREDBYCUSTOMERID') OR define('PURCHASEDECLAREDBYCUSTOMERID'
|
||||
defined('PDDOCSTOBECOLLECTED') OR define('PDDOCSTOBECOLLECTED','t_pd_docs_to_be_collected');
|
||||
defined('PDDOCSTOBECOLLECTEDID') OR define('PDDOCSTOBECOLLECTEDID','pd_doc_to_be_collect_id');
|
||||
|
||||
defined('ENTITYDISCLAIMER') OR define('ENTITYDISCLAIMER','m_entity_disclaimer');
|
||||
defined('ENTITYDISCLAIMERID') OR define('ENTITYDISCLAIMERID','entity_disclaimer_id');
|
||||
|
||||
|
||||
|
||||
|
||||
@ -145,6 +145,8 @@ $route['saveTATInfo'] = 'Entity_Management_Controller/saveTATInfo';
|
||||
$route['deleteTATCombimaion'] = 'Entity_Management_Controller/deleteTATCombimaion';
|
||||
$route['saveEntityPricingInfo'] = 'Entity_Management_Controller/saveEntityPricingInfo';
|
||||
$route['listEntityPricingInfo'] = 'Entity_Management_Controller/listEntityPricingInfo';
|
||||
$route['saveEntityDisclaimer'] = 'Entity_Management_Controller/saveEntityDisclaimer';
|
||||
$route['getEntityDisclaimer'] = 'Entity_Management_Controller/getEntityDisclaimer';
|
||||
|
||||
//PD RELATED
|
||||
$route['triggerNewPD'] = 'PD_Controller/triggerNewPD';
|
||||
|
||||
@ -826,6 +826,58 @@ class Entity_Management_Controller extends REST_Controller {
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
|
||||
public function saveEntityDisclaimer_post()
|
||||
{
|
||||
$records = $this->post('records');
|
||||
$id = null;
|
||||
if($records['entity_disclaimer_id'])
|
||||
{
|
||||
$id = $this->Entity_Management_Model->updateRecords($records,ENTITYDISCLAIMER,array('entity_disclaimer_id' => $records['entity_disclaimer_id']));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$id = $this->Entity_Management_Model->saveRecords($records,ENTITYDISCLAIMER);
|
||||
}
|
||||
|
||||
if($id != null)
|
||||
{
|
||||
$data['dataStatus'] = true;
|
||||
$data['status'] = REST_Controller::HTTP_OK;
|
||||
$data['records'] = $id;
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['dataStatus'] = false;
|
||||
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||
$data['msg'] = 'Something Went Wrong! Try Later';
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
|
||||
public function getEntityDisclaimer_get()
|
||||
{
|
||||
$entity_id = $this->get('eid');
|
||||
|
||||
$res = $this->Entity_Management_Model->selectRecords(ENTITYDISCLAIMER,array('fk_entity_id' => $entity_id));
|
||||
if(count($res))
|
||||
{
|
||||
$data['dataStatus'] = true;
|
||||
$data['status'] = REST_Controller::HTTP_OK;
|
||||
$data['records'] = $res[0];
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['dataStatus'] = false;
|
||||
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||
$data['msg'] = 'No Records Found';
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -30,23 +30,27 @@ class PDALERTS
|
||||
/*********************************************/
|
||||
/*******Get PD Master Details*****************/
|
||||
/*********************************************/
|
||||
$CI->db->SELECT("PDTRIGGER.fk_lender_id,ENTITY.short_name,PDTRIGGER.lender_applicant_id,PDTRIGGER.fk_pd_type,PDTRIGGER.pd_status,PDTRIGGER.pd_date_of_initiation,PDTRIGGER.scheduled_on,PDTRIGGER.updatedon,PDTRIGGER.fk_pd_allocated_to,ALLOCATED.email as allocated_email,ALLOCATED.mobile_no as allocated_mobile_no,concat(ALLOCATED.first_name,' ',ALLOCATED.last_name) as pdofficer_name,PDTRIGGER.executive_id,EXECUTIVE.email as executive_email,EXECUTIVE.mobile_no as executive_mobile_no,PDTRIGGER.central_pd_officer_id,CENTRALPDOFFICER.mobile_no as centralpdofficer_mobile_no,CENTRALPDOFFICER.email as centralpdofficer_mail,PDTRIGGER.pd_agency_id,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,CREATED.fk_entity_type_id,CREATED.email as created_email,PDTRIGGER.pd_contact_person_mail,PDAPPLICANTSDETAILS.applicant_name,PDAPPLICANTSDETAILS.mobile_no as customer_mobile_no,PDTRIGGER.encrypted_url,PDOFFICER.web_token as pdofficer_webtoken,PDOFFICER.mob_token as pdofficer_mobtoken,PDEXECUTIVE.web_token as pdexecutive_webtoken,PDEXECUTIVE.mob_token as pdexecutive_mobtoken,CENTRALPDOFFICERTOKEN.web_token as centralpdofficer_webtoken,CENTRALPDOFFICERTOKEN.mob_token as centralpdofficer_mobtoken");
|
||||
$CI->db->SELECT("PDTRIGGER.fk_lender_id,ENTITY.short_name,PDTRIGGER.lender_applicant_id,PDTRIGGER.fk_pd_type,PDTRIGGER.pd_status,PDTRIGGER.pd_date_of_initiation,PDTRIGGER.scheduled_on,PDTRIGGER.updatedon,PDTRIGGER.fk_pd_allocated_to,ALLOCATED.email as allocated_email,ALLOCATED.mobile_no as allocated_mobile_no,concat(ALLOCATED.first_name,' ',ALLOCATED.last_name) as pdofficer_name,PDTRIGGER.executive_id,EXECUTIVE.email as executive_email,EXECUTIVE.mobile_no as executive_mobile_no,PDTRIGGER.central_pd_officer_id,CENTRALPDOFFICER.mobile_no as centralpdofficer_mobile_no,CENTRALPDOFFICER.email as centralpdofficer_mail,PDTRIGGER.pd_agency_id,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,CREATED.fk_entity_type_id,CREATED.email as created_email,PDTRIGGER.pd_contact_person_mail,PDAPPLICANTSDETAILS.applicant_name,PDAPPLICANTSDETAILS.mobile_no as customer_mobile_no,PDTRIGGER.encrypted_url,PDOFFICER.web_token as pdofficer_webtoken,PDOFFICER.mob_token as pdofficer_mobtoken,PDEXECUTIVE.web_token as pdexecutive_webtoken,PDEXECUTIVE.mob_token as pdexecutive_mobtoken,CENTRALPDOFFICERTOKEN.web_token as centralpdofficer_webtoken,CENTRALPDOFFICERTOKEN.mob_token as centralpdofficer_mobtoken,concat(LENDERSALESPERSON.first_name,' ',LENDERSALESPERSON.last_name) as lender_sales_person_name,LENDERSALESPERSON.mobile_no as lender_sales_contact_mobileno,LENDERSALESPERSON.email as lender_sales_person_email,concat(LENDERCREDITPERSON.first_name,' ',LENDERCREDITPERSON.last_name) as lender_credit_person_name,LENDERCREDITPERSON.mobile_no as lender_credit_person_contact_mobileno,LENDERCREDITPERSON.email as lender_credit_person_email,LENDERSALESPERSONTOKEN.web_token as lender_sales_web_token,LENDERSALESPERSONTOKEN.mob_token as lender_sales_mob_token,LENDERCREDITPERSONTOKEN.web_token as lender_credit_web_token,LENDERCREDITPERSONTOKEN.mob_token as lender_credit_mob_token,");
|
||||
$CI->db->FROM(PDTRIGGER." as PDTRIGGER");
|
||||
$CI->db->JOIN(USERPROFILE." as CREATED","PDTRIGGER.fk_createdby = CREATED.userid",'LEFT');
|
||||
$CI->db->JOIN(ENTITY." as ENTITY","PDTRIGGER.fk_lender_id = ENTITY.entity_id",'LEFT');
|
||||
$CI->db->JOIN(USERPROFILE." as ALLOCATED","PDTRIGGER.fk_pd_allocated_to = ALLOCATED.userid",'LEFT');
|
||||
$CI->db->JOIN(USERPROFILE." as EXECUTIVE","PDTRIGGER.executive_id = EXECUTIVE.userid",'LEFT');
|
||||
$CI->db->JOIN(USERPROFILE." as CENTRALPDOFFICER","PDTRIGGER.central_pd_officer_id = CENTRALPDOFFICER.userid",'LEFT');
|
||||
$CI->db->JOIN(USERPROFILE.' as LENDERSALESPERSON','PDTRIGGER.lender_sales_person = LENDERSALESPERSON.userid','LEFT');
|
||||
$CI->db->JOIN(USERPROFILE.' as LENDERCREDITPERSON','PDTRIGGER.lender_credit_person = LENDERCREDITPERSON.userid','LEFT');
|
||||
$CI->db->JOIN(PDAPPLICANTSDETAILS." as PDAPPLICANTSDETAILS","PDTRIGGER.pd_id = PDAPPLICANTSDETAILS.fk_pd_id AND PDAPPLICANTSDETAILS.applicant_type = 1",'LEFT');
|
||||
$CI->db->JOIN(USERNOTIFICATIONTOKENS." as PDOFFICER","PDTRIGGER.fk_pd_allocated_to = PDOFFICER.fk_user_id",'LEFT');
|
||||
$CI->db->JOIN(USERNOTIFICATIONTOKENS." as PDEXECUTIVE","PDTRIGGER.executive_id = PDEXECUTIVE.fk_user_id",'LEFT');
|
||||
$CI->db->JOIN(USERNOTIFICATIONTOKENS." as CENTRALPDOFFICERTOKEN","PDTRIGGER.central_pd_officer_id = CENTRALPDOFFICERTOKEN.fk_user_id",'LEFT');
|
||||
$CI->db->JOIN(USERNOTIFICATIONTOKENS." as LENDERSALESPERSONTOKEN","PDTRIGGER.lender_sales_person = LENDERSALESPERSONTOKEN.fk_user_id",'LEFT');
|
||||
$CI->db->JOIN(USERNOTIFICATIONTOKENS." as LENDERCREDITPERSONTOKEN","PDTRIGGER.lender_credit_person = LENDERCREDITPERSONTOKEN.fk_user_id",'LEFT');
|
||||
$CI->db->WHERE("PDTRIGGER.pd_id",$pdid);
|
||||
$core_details = $CI->db->GET()->result_array();
|
||||
// print_r($core_details);
|
||||
|
||||
|
||||
// die();
|
||||
//die();
|
||||
if(count($core_details))
|
||||
{
|
||||
$additional_data_for_logs['pd_status'] = $core_details[0]['pd_status'];
|
||||
@ -113,6 +117,8 @@ class PDALERTS
|
||||
if($pd_notification_configs[0]['sms_lender'] == 1)
|
||||
{
|
||||
$lender_sms = (string)$core_details[0]['pd_contact_mobileno'];
|
||||
$lender_sales_contact_mobileno = (string)$core_details[0]['lender_sales_contact_mobileno'];
|
||||
$lender_credit_person_contact_mobileno = (string)$core_details[0]['lender_credit_person_contact_mobileno'];
|
||||
|
||||
if($pd_notification_msg[0]['lender'] != null)
|
||||
{
|
||||
@ -120,8 +126,15 @@ class PDALERTS
|
||||
$msg = self::stringReplace($msg,$core_details);
|
||||
//echo $msg;
|
||||
$msg = str_replace('<br>','',$msg);
|
||||
|
||||
$additional_data_for_logs['to_whom'] = 'LEDNER';
|
||||
SMS_GUPSHUP::sendSMS($msg,$lender_sms,$additional_data_for_logs);
|
||||
|
||||
$additional_data_for_logs['to_whom'] = 'LEDNERSALES';
|
||||
SMS_GUPSHUP::sendSMS($msg,$lender_sales_contact_mobileno,$additional_data_for_logs);
|
||||
|
||||
$additional_data_for_logs['to_whom'] = 'LEDNERCREDIT';
|
||||
SMS_GUPSHUP::sendSMS($msg,$lender_credit_person_contact_mobileno,$additional_data_for_logs);
|
||||
}
|
||||
|
||||
|
||||
@ -129,11 +142,13 @@ class PDALERTS
|
||||
|
||||
|
||||
/*********************************************/
|
||||
/*******Send Mail Notification to Lender*****/
|
||||
/*******Send Mail Notification to Lender*****/ // currently Mail disabled
|
||||
/*********************************************/
|
||||
if($pd_notification_configs[0]['mail_lender'] == 1)
|
||||
{
|
||||
$lender_email = null;
|
||||
$lender_sales_person_email = $core_details[0]['lender_sales_person_email'];
|
||||
$lender_credit_person_email = $core_details[0]['lender_credit_person_email'];
|
||||
|
||||
if($core_details[0]['fk_entity_type_id'] == 2 )
|
||||
{
|
||||
@ -144,24 +159,44 @@ class PDALERTS
|
||||
$lender_email = $core_details[0]['pd_contact_person_mail'];
|
||||
}
|
||||
|
||||
|
||||
$msg = $pd_notification_msg[0]['lender'];
|
||||
$msg = self::stringReplace($msg,$core_details);
|
||||
if($lender_email != null)
|
||||
{
|
||||
$msg = $pd_notification_msg[0]['lender'];
|
||||
$msg = self::stringReplace($msg,$core_details);
|
||||
self::sendMail($CI,$lender_email,$msg,$core_details);
|
||||
// self::sendMail($CI,$lender_email,$msg,$core_details); // currently Mail disabled
|
||||
}
|
||||
//self::sendMail($CI,$lender_sales_person_email,$msg,$core_details);// currently Mail disabled
|
||||
//self::sendMail($CI,$lender_credit_person_email,$msg,$core_details);// currently Mail disabled
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*********************************************/
|
||||
/*******Send Push Notification to Lender(WEB/MOB)***** HOLDED TEMPORARY/
|
||||
/*******Send Push Notification to Lender(WEB/MOB)*****
|
||||
/*********************************************/
|
||||
if($pd_notification_configs[0]['app_lender'] == 1)
|
||||
{
|
||||
$lender_web_token = (string)$core_details[0]['pd_contact_mobileno'];
|
||||
$lender_mob_token = (string)$core_details[0]['pd_contact_mobileno'];
|
||||
//$lender_web_token = (string)$core_details[0]['pd_contact_mobileno'];
|
||||
//$lender_mob_token = (string)$core_details[0]['pd_contact_mobileno'];
|
||||
$msg = $pd_notification_msg[0]['lender'];
|
||||
$msg = self::stringReplace($msg,$core_details);
|
||||
|
||||
$lender_sales_web_token = (string)$core_details[0]['lender_sales_web_token'];
|
||||
$lender_sales_mob_token = (string)$core_details[0]['lender_sales_mob_token'];
|
||||
|
||||
$additional_data_for_logs['to_whom'] = 'LEDNERSALES';
|
||||
PUSH_NOTIFICATION::sendNotification($lender_sales_web_token,$lender_sales_mob_token,$msg,$additional_data_for_logs);
|
||||
|
||||
|
||||
$lender_credit_web_token = (string)$core_details[0]['lender_credit_web_token'];
|
||||
$lender_credit_mob_token = (string)$core_details[0]['lender_credit_mob_token'];
|
||||
|
||||
$additional_data_for_logs['to_whom'] = 'LEDNERCREDIT';
|
||||
PUSH_NOTIFICATION::sendNotification($lender_credit_web_token,$lender_credit_mob_token,$msg,$additional_data_for_logs);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -206,8 +241,8 @@ class PDALERTS
|
||||
$msg = $pd_notification_msg[0]['pdofficer'];
|
||||
$msg = self::stringReplace($msg,$core_details);
|
||||
|
||||
PUSH_NOTIFICATION::sendNotification($pd_offcier_mob_token,$pd_offcier_web_token,$msg,$additional_data_for_logs);
|
||||
PUSH_NOTIFICATION::sendNotification($pd_executive_mob_token,$pd_executive_web_token,$msg,$additional_data_for_logs);
|
||||
PUSH_NOTIFICATION::sendNotification($pd_offcier_web_token,$pd_offcier_mob_token,$msg,$additional_data_for_logs);
|
||||
PUSH_NOTIFICATION::sendNotification($pd_executive_web_token,$pd_executive_mob_token,$msg,$additional_data_for_logs);
|
||||
|
||||
}
|
||||
|
||||
@ -257,7 +292,7 @@ class PDALERTS
|
||||
$central_offcier_mob_token = $core_details[0]['centralpdofficer_mobtoken'];
|
||||
$msg = $pd_notification_msg[0]['pdincharge'];
|
||||
$msg = self::stringReplace($msg,$core_details);
|
||||
PUSH_NOTIFICATION::sendNotification($central_offcier_mob_token,$central_offcier_web_token,$msg,$additional_data_for_logs);
|
||||
PUSH_NOTIFICATION::sendNotification($central_offcier_web_token,$central_offcier_mob_token,$msg,$additional_data_for_logs);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -759,7 +759,7 @@ class PD_Model extends SPARQ_Model {
|
||||
*/
|
||||
public function getPDMasterDetails($pdid,$random_string = null)
|
||||
{
|
||||
$this->db->SELECT('PDTRIGGER.pd_id, PDTRIGGER.pd_sno,PDTRIGGER.fk_lender_id,PDTRIGGER.imgc_fin_institute,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name,ENTITY.is_score_card_enabled, 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.pd_date_of_initiation as pd_date_of_initiation_sqlformat, 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 %p") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i %p") 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.lender_sales_person,concat(LENDERSALESPERSON.first_name," ",LENDERSALESPERSON.last_name) as lender_sales_person_name,LENDERSALESPERSON.mobile_no as lender_sales_contact_mobileno,LENDERSALESPERSON.email as lender_sales_person_email,PDTRIGGER.lender_credit_person,concat(LENDERCREDITPERSON.first_name," ",LENDERCREDITPERSON.last_name) as lender_credit_person_name,LENDERCREDITPERSON.mobile_no as lender_credit_person_contact_mobileno,LENDERCREDITPERSON.email as lender_credit_person_email,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,PDTRIGGER.scheduled_on as scheduled_on_for_validation,DATE_FORMAT(PDTRIGGER.scheduled_on,"%dth %b %Y ") as scheduled_date_for_log,DATE_FORMAT(PDTRIGGER.scheduled_on,"%h:%i %p") as scheduled_time_for_log,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.bounce_reason,PDTRIGGER.bounce_reason_others,BOUNCEMASTER.bounce_reason_name,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDAPPLICANTSDETAILS.applicant_name as main_applicant,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDAPPLICANTSDETAILS.applicant_title_name,TITLES.name as title_name,PDTRIGGER.pd_contact_landline,PDTRIGGER.other_pincode,PDTRIGGER.is_otp_done,OTPREJECTION.rejection_reason,PDTRIGGER.otp_reject_other_reason,PDTRIGGER.encrypted_url,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id,PDTRIGGER.start_location,PDTRIGGER.satellite_image_base64_blob,DATE_FORMAT(PDTRIGGER.pd_report_generated_date,"%d/%m/%Y %h:%i:%s %p") as pd_report_generated_date,DATE_FORMAT(PDTRIGGER.pd_visit_date,"%d/%m/%Y %h:%i:%s %p") as pd_visit_date,PDTRIGGER.random_string,PDTRIGGER.pd_report_html_filename,PDTRIGGER.is_qc_edited,PDTRIGGER.is_zip_created,PDTRIGGER.pd_qc_note');
|
||||
$this->db->SELECT('PDTRIGGER.pd_id, PDTRIGGER.pd_sno,PDTRIGGER.fk_lender_id,PDTRIGGER.imgc_fin_institute,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name,ENTITY.is_score_card_enabled,ENTITY.is_otp_enabled, 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.pd_date_of_initiation as pd_date_of_initiation_sqlformat, 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 %p") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i %p") 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.lender_sales_person,concat(LENDERSALESPERSON.first_name," ",LENDERSALESPERSON.last_name) as lender_sales_person_name,LENDERSALESPERSON.mobile_no as lender_sales_contact_mobileno,LENDERSALESPERSON.email as lender_sales_person_email,PDTRIGGER.lender_credit_person,concat(LENDERCREDITPERSON.first_name," ",LENDERCREDITPERSON.last_name) as lender_credit_person_name,LENDERCREDITPERSON.mobile_no as lender_credit_person_contact_mobileno,LENDERCREDITPERSON.email as lender_credit_person_email,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,PDTRIGGER.scheduled_on as scheduled_on_for_validation,DATE_FORMAT(PDTRIGGER.scheduled_on,"%dth %b %Y ") as scheduled_date_for_log,DATE_FORMAT(PDTRIGGER.scheduled_on,"%h:%i %p") as scheduled_time_for_log,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.bounce_reason,PDTRIGGER.bounce_reason_others,BOUNCEMASTER.bounce_reason_name,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDAPPLICANTSDETAILS.applicant_name as main_applicant,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDAPPLICANTSDETAILS.applicant_title_name,TITLES.name as title_name,PDTRIGGER.pd_contact_landline,PDTRIGGER.other_pincode,PDTRIGGER.is_otp_done,OTPREJECTION.rejection_reason,PDTRIGGER.otp_reject_other_reason,PDTRIGGER.encrypted_url,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id,PDTRIGGER.start_location,PDTRIGGER.satellite_image_base64_blob,DATE_FORMAT(PDTRIGGER.pd_report_generated_date,"%d/%m/%Y %h:%i:%s %p") as pd_report_generated_date,DATE_FORMAT(PDTRIGGER.pd_visit_date,"%d/%m/%Y %h:%i:%s %p") as pd_visit_date,PDTRIGGER.random_string,PDTRIGGER.pd_report_html_filename,PDTRIGGER.is_qc_edited,PDTRIGGER.is_zip_created,PDTRIGGER.pd_qc_note');
|
||||
$this->db->FROM(PDTRIGGER.' as PDTRIGGER');
|
||||
$this->db->JOIN(ENTITY.' as ENTITY','PDTRIGGER.fk_lender_id = ENTITY.entity_id ','LEFT');
|
||||
$this->db->JOIN(ENTITYBILLING.' as ENTITYBILLING','PDTRIGGER.fk_entity_billing_id = ENTITYBILLING.entity_billing_id','LEFT');
|
||||
|
||||
@ -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 = 76.3;var url = 'http://localhost/sparqapi/api?'+score;var image_url = 'C:/xampp/htdocs/ssa_external_data/development/pd_reports/900views/report_templates/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 = 81.7;var url = 'http://localhost/AWSEC2/sparqapi/api?'+score;var image_url = 'C:/xampp/htdocs/AWSEC2/sparqapi/api/application//chart.png' ;page.open(url,function() {setTimeout(function() {page.render(image_url);phantom.exit();}, 500);});
|
||||
@ -504,14 +504,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
echo "<br><br>";
|
||||
echo "<p></p>";
|
||||
|
||||
if($pd_master_details[0]['lender_short_name'] == 'CLIX')
|
||||
if($lender_disclaimer[0]['disclaimer'] != '')
|
||||
{
|
||||
echo '<p align="justify"><i><strong>Disclaimer:</strong> The information contained in this report (a) is provided for the benefit of Clix Capital Services Private Limited (hereinafter referred to as Clix) only, and is not for the benefit of any other parties; (b) has been compiled by Sineedge Consulting Private Limited (Hereinafter referred as SCPL) in accordance with the instructions given, by Clix; (c) has been obtained during the visit done at premises as instructed by Clix. Some of the information in this report, by the very nature of it, might have been obtained through informal sources. SCPL wishes to mention that all due care has been exercised by SCPL in collecting information and putting together this report. However, given the nature of some of these verifications, SCPL cannot be held liable for any financial or other loss to Clix on account of any errors or omissions in the report. SCPL does not guarantee absolute accuracy of information contained herein. SCPL does not take any responsibility for any action(s) that the client may take based on the contents of this report.</i></p>';
|
||||
|
||||
echo '<p align="justify"><i><strong>Registered / Corporate Office:</strong> SineEdge Consulting Private Limited. A-211, Pioneer Urban Square, Golf Course Extension Road, Sector 62, Gurgaon, Haryana - 122002</i></p>';
|
||||
echo '<p align="justify"><i><strong>Disclaimer: </strong>'. $lender_disclaimer[0]['disclaimer'] .'</i></p>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
echo '<p align="justify"><i><strong>Registered / Corporate Office:</strong> SineEdge Consulting Private Limited. A-211, Pioneer Urban Square, Golf Course Extension Road, Sector 62, Gurgaon, Haryana - 122002</i></p>';
|
||||
?>
|
||||
|
||||
|
||||
@ -3110,7 +3109,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php
|
||||
//
|
||||
}
|
||||
echo '<p>'.$stock_form_remarks.'</p>';
|
||||
//echo '<p>'.$stock_form_remarks.'</p>';
|
||||
//else {?>
|
||||
<!-- <p> Stock details is not available.</p> -->
|
||||
<?php //}
|
||||
@ -3723,7 +3722,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</table>
|
||||
<?php }
|
||||
else {?>
|
||||
<p><b>As per the loan applicants, they do not have any other source of Income.</b></p>
|
||||
<p>As per the loan applicants, they do not have any other source of Income.</p>
|
||||
<?php }
|
||||
if($other_source_income_common_remarks != ''){ echo '<p>'. $other_source_income_common_remarks.'</p>'; }
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user