OTP PD TINY ISSUES
This commit is contained in:
parent
6eda7c94fd
commit
848d97fd96
@ -78,7 +78,30 @@ public static function getStockWholesaleDetails($goods){
|
||||
);
|
||||
}, $goods);
|
||||
}
|
||||
// print_r($goods);
|
||||
return $goods;
|
||||
}
|
||||
|
||||
// get wholesale
|
||||
public static function getStockServiceDetails($services){
|
||||
// goods
|
||||
if(count($services)>0){
|
||||
$services = array_map(function($tag) {
|
||||
$getUom= $tag['service_provider_uom']==1 ? $tag['service_provider_other_uom'] : (isset($tag['uom_master']) ? $tag['uom_master'] : '');
|
||||
$getSufficient= (strtoupper($tag['service_provider_observed']) =='NO') ? 'No Stock Observed' : ((strtoupper($tag['is_sufficiant_service_goods']) =='YES') ? 'Yes, the stock of service providing observed' : 'No, the stock of service providing observed because of '.$tag['service_goods_remarks']);
|
||||
return array(
|
||||
'name' => $tag['service_provider_name'],
|
||||
'type' => 'Service Providing',
|
||||
'quantity' => strtoupper($tag['service_provider_observed'])=='YES' ? ($tag['service_provider_quantity'] != "" ? $tag['service_provider_quantity'] : 'Could Not Verify') : '',
|
||||
'uom' => strtoupper($tag['service_provider_observed'])=='YES' ? $getUom : '',
|
||||
'value' => strtoupper($tag['service_provider_observed'])=='YES' ? $tag['estimated_service_provider_value'] : '',
|
||||
'is_sufficiant' => (strtoupper($tag['service_provider_observed'])=='YES') ? $getSufficient : ((strtoupper($tag['service_provider_observed'])=='NO') ? $getSufficient : ''),
|
||||
);
|
||||
}, $services);
|
||||
}
|
||||
//print_r($services);die();
|
||||
return $services;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -759,7 +759,7 @@ class PD_Model extends SPARQ_Model {
|
||||
*/
|
||||
public function getPDMasterDetails($pdid,$random_string = null)
|
||||
{
|
||||
$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.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.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,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.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.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.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');
|
||||
@ -784,6 +784,7 @@ class PD_Model extends SPARQ_Model {
|
||||
$this->db->JOIN(PDAPPLICANTSDETAILS.' as PDAPPLICANTSDETAILS','PDTRIGGER.pd_id = PDAPPLICANTSDETAILS.fk_pd_id AND PDAPPLICANTSDETAILS.applicant_type = 1','LEFT');
|
||||
$this->db->JOIN(ENTITYLENDERBRANCH.' as ENTITYLENDERBRANCH','PDTRIGGER.pd_branch_id = ENTITYLENDERBRANCH.entity_lender_branch_id','LEFT');
|
||||
$this->db->JOIN(TITLES.' as TITLES','PDAPPLICANTSDETAILS.applicant_title_name = TITLES.title_id','LEFT');
|
||||
$this->db->JOIN(OTPREJECTION.' as OTPREJECTION','PDTRIGGER.otp_reject_reason = OTPREJECTION.otp_rejection_id','LEFT');
|
||||
$this->db->WHERE('PDTRIGGER.pd_id',$pdid);
|
||||
if($random_string != null)
|
||||
{
|
||||
@ -1697,7 +1698,7 @@ class PD_Model extends SPARQ_Model {
|
||||
|
||||
public function getAddtionalPDInformations($addressid)
|
||||
{
|
||||
$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 %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.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,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDTRIGGER.pd_contact_landline,PDTRIGGER.other_pincode,PDTRIGGER.is_otp_done,PDTRIGGER.encrypted_url,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id,PDTRIGGER.random_string');
|
||||
$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 %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.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,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,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.random_string');
|
||||
$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');
|
||||
@ -1718,6 +1719,7 @@ class PD_Model extends SPARQ_Model {
|
||||
$this->db->JOIN(STATE.' as STATE','PDTRIGGER.fk_state = STATE.state_id ','LEFT');
|
||||
$this->db->JOIN(CITY.' as CITY','PDTRIGGER.fk_city = CITY.city_id','LEFT');
|
||||
$this->db->JOIN(PINCODE.' as PINCODE','PDTRIGGER.pincode = PINCODE.pincode_id','LEFT');
|
||||
$this->db->JOIN(OTPREJECTION.' as OTPREJECTION','PDTRIGGER.otp_reject_reason = OTPREJECTION.otp_rejection_id','LEFT');
|
||||
$this->db->JOIN(BOUNCEMASTER.' as BOUNCEMASTER','PDTRIGGER.bounce_reason = BOUNCEMASTER.bounce_id','LEFT');
|
||||
$this->db->JOIN(ENTITYLENDERBRANCH.' as ENTITYLENDERBRANCH','PDTRIGGER.pd_branch_id = ENTITYLENDERBRANCH.entity_lender_branch_id','LEFT');
|
||||
$this->db->WHERE('PDTRIGGER.fk_address_id',$addressid);
|
||||
|
||||
@ -629,38 +629,6 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
echo '<br>';
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
// echo '<h3>Person(s) Met: </h3>';
|
||||
// foreach($person_met_data as $person)
|
||||
// {?>
|
||||
<!--<div class="chip">
|
||||
<img id="img1" src="<?php //echo $person['photo']?>" alt="Person" width="150" height="150">
|
||||
<img id="img2" src="<?php //echo $person['id_proof']?>" alt="Person" width="150" height="150">
|
||||
<center>
|
||||
<div>
|
||||
<br><b><?php //echo $person['name']?></b>
|
||||
<br>
|
||||
<div style="word-wrap:break-word;width:65%;"><?php //echo $person['relations']?></div>
|
||||
</div></center>
|
||||
|
||||
</div>
|
||||
<br><br> -->
|
||||
<?php //}?>
|
||||
<!--</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>-->
|
||||
<!-- sdfs
|
||||
<table class="scorecard_table">
|
||||
<tr> <th>Name</th> <th>Age(Years)</th> <th>Qualification</th> <th>Relationships</th> <tr>
|
||||
<tbody>
|
||||
|
||||
<tr> <td>Name</td> <td>Age</td> <td>Qualification</td> <td>Relationship</td> <tr>
|
||||
<tr> <td>Name2</td> <td>Age2</td> <td>Qualification2</td> <td>Relationship2</td> <tr>
|
||||
|
||||
</tbody>
|
||||
</table>-->
|
||||
<br>
|
||||
|
||||
<p contenteditable="true"><b>Loan Applicants:</b></p>
|
||||
@ -705,10 +673,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$company_relationship_data.='<br><center>and</center><br>';
|
||||
}
|
||||
}
|
||||
//echo '*********'.$company_relationship_data.'*********';
|
||||
//echo strrpos($company_relationship_data, '');
|
||||
// $company_relationship_data = substr_replace($company_relationship_data, '', strrpos($company_relationship_data, '<br><center>and</center><br>'),strlen($company_relationship_data));
|
||||
// echo $company_relationship_data;
|
||||
|
||||
$personal_relationship_data = null;
|
||||
foreach($general_form['persons_with_relationships'] as $persons_with_relationship)
|
||||
{
|
||||
@ -956,18 +921,20 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
{
|
||||
|
||||
$first_business_form = json_decode($pd_processed_forms[13][0]['processed_json'],true);
|
||||
if($first_business_form['was_the_company_name_board_sighted']=='yes')
|
||||
{
|
||||
//if($first_business_form['was_the_company_name_board_sighted']=='yes')
|
||||
//{
|
||||
//echo 'YES';die();
|
||||
foreach ($pd_images[13] as $image_key => $image_value) {
|
||||
if($image_value['pd_document_title'] == 'Name Board Seen')
|
||||
{
|
||||
|
||||
$name_board_seen_img_url = $image_value['doc_url'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
//echo $name_board_seen_img_url;die();
|
||||
//print_r($address_images);die();
|
||||
?>
|
||||
@ -2605,7 +2572,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
foreach($supplierRow['manufacturing_details'] as $manuRow){
|
||||
$total_payments_percent_on_credit_for_supplier += $supplierRow['manufacturing_details'][0]['main_raw_materials_total_payments_percent_on_credit'];
|
||||
$total_payments_percent_on_credit_for_supplier += isset($supplierRow['manufacturing_details'][0]['main_raw_materials_total_payments_percent_on_credit']) ? $supplierRow['manufacturing_details'][0]['main_raw_materials_total_payments_percent_on_credit'] : 0;
|
||||
|
||||
if(isset($manuRow['main_raw_materials'])){
|
||||
|
||||
@ -2659,6 +2626,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
//print_r($supplierRow['trade_details'][0]['trading_products']);
|
||||
if(isset($supplierRow['trade_details'][0]['trading_products']) && count($supplierRow['trade_details'][0]['trading_products']))
|
||||
{
|
||||
$total_payments_percent_on_credit_for_supplier += $supplierRow['trade_details'][0]['trading_products_total_payments_percent_on_credit'];
|
||||
foreach($supplierRow['trade_details'][0]['trading_products'] as $tradeRow){
|
||||
|
||||
if($tradeRow['trade_product_name'] != "" || $tradeRow['trade_product_name'] != null)
|
||||
@ -2668,7 +2636,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
|
||||
$total_payments_percent_on_credit_for_supplier += $supplierRow['trade_details'][0]['trading_products_total_payments_percent_on_credit'];
|
||||
|
||||
|
||||
|
||||
$temp['supplier_first_row'] = '<tr><td class="customtd">1</td><td class="customtd_leftalign">Item Purchased </td>'.'<td class="customtd">'.$tradeRow['trade_product_name'].'</td></tr>';
|
||||
|
||||
@ -2711,6 +2680,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
if(isset($supplierRow['servicing_details'][0]['service_providers']) && count($supplierRow['servicing_details'][0]['service_providers']))
|
||||
{
|
||||
|
||||
$total_payments_percent_on_credit_for_supplier += isset($supplierRow['servicing_details'][0]['service_providers_total_payments_percent_on_credit']) ? $supplierRow['servicing_details'][0]['service_providers_total_payments_percent_on_credit'] : 0;
|
||||
//echo isset($supplierRow['servicing_details'][0]['service_providers_total_payments_percent_on_credit']) ? $supplierRow['servicing_details'][0]['service_providers_total_payments_percent_on_credit'] : 0;
|
||||
|
||||
foreach($supplierRow['servicing_details'][0]['service_providers'] as $serviceRow){
|
||||
|
||||
|
||||
@ -2719,10 +2692,6 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$total_no_of_suppliers++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$total_payments_percent_on_credit_for_supplier += isset($serviceRow['servicing_details'][0]['service_providers_total_payments_percent_on_credit']) ? $serviceRow['servicing_details'][0]['service_providers_total_payments_percent_on_credit'] : 0;
|
||||
|
||||
$temp['supplier_first_row'] = '<tr><td class="customtd">1</td><td class="customtd_leftalign">Item Purchased </td>'.'<td class="customtd">'.$serviceRow['service_provider_name'].'</td></tr>';
|
||||
|
||||
$supplier_second_row = '<tr><td class="customtd">2</td><td class="customtd_leftalign">Contact Person </td>';
|
||||
@ -2763,6 +2732,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
// echo "dsfnsdkfnj**********";
|
||||
//print_r($supplierResult);die();
|
||||
|
||||
echo '<h3 contenteditable="true">Supplier Details</h3>' ;
|
||||
if($is_supplier_details_avaialable != null)
|
||||
{
|
||||
@ -2876,7 +2846,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
{
|
||||
$stRow = $pd_processed_forms[11][$business_count];
|
||||
$stockRow = json_decode($stRow['processed_json'],true);
|
||||
//print_r($stockRow);
|
||||
//print_r($stockRow);die();
|
||||
$stock_form_remarks = $stockRow['stock_remarks'];
|
||||
$stock_remarks = $stockRow['stock_remarks'];
|
||||
$is_stock_sufficient_enough = $stockRow['is_sufficiant_finished_and_traded_goods'];
|
||||
@ -2909,6 +2879,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
else {
|
||||
$bindStockResult["wholesale"]=array();
|
||||
}
|
||||
|
||||
// this is for stock service details
|
||||
if(count($stockRow['servicing_details'][0]['service_provider']) > 0){
|
||||
$bindStockResult["service_stocks"]=Stockform::getStockServiceDetails($stockRow['servicing_details'][0]['service_provider']);
|
||||
}
|
||||
else {
|
||||
$bindStockResult["service_stocks"]=array();
|
||||
}
|
||||
|
||||
count($bindStockResult['wholesale']) || count($bindStockResult['retail']) || count($bindStockResult['manufacturing'])? array_push($stockResult,$bindStockResult) : $stockResult;
|
||||
//echo "**********************";
|
||||
@ -2944,8 +2922,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td class="customtd"><?php echo (++$stock_sr_no) ?></td>
|
||||
<td class="customtd"><?php echo $pstRow['type'] ?></td>
|
||||
<td class="customtd"><?php echo $pstRow['name'] ?></td>
|
||||
<td class="customtd"><?php echo $pstRow['value'] ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($pstRow['value']) : 'Not Observed'?></td>
|
||||
<td class="customtd"><?php echo $pstRow['quantity'] ? $pstRow['quantity'].' '.$pstRow['uom'] : 'Not Observed' ?></td>
|
||||
<td class="customtd"><?php echo $pstRow['value'] && $pstRow['value'] != "" ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($pstRow['value']) : 'Not Observed'?></td>
|
||||
<td class="customtd"><?php echo $pstRow['quantity'] && $pstRow['quantity'] != "" ? $pstRow['quantity'].' '.$pstRow['uom'] : 'Not Observed' ?></td>
|
||||
|
||||
<!-- <td><?php //echo $pstRow['is_sufficiant'] ?></td> -->
|
||||
</tr>
|
||||
@ -2966,8 +2944,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td class="customtd"><?php echo (++$stock_sr_no) ?></td>
|
||||
<td class="customtd"><?php echo $reRow['type'] ?></td>
|
||||
<td class="customtd"><?php echo $reRow['name'] ?></td>
|
||||
<td class="customtd"><?php echo $reRow['value'] ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($reRow['value']) : 'Not Observed' ?></td>
|
||||
<td class="customtd"><?php echo $reRow['quantity'] ? $reRow['quantity'].' '.$reRow['uom'] : 'Not Observed' ?></td>
|
||||
<td class="customtd"><?php echo $reRow['value'] && $reRow['value'] != " " ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($reRow['value']) : 'Not Observed' ?></td>
|
||||
<td class="customtd"><?php echo $reRow['quantity'] && $reRow['quantity'] != "" ? $reRow['quantity'].' '.$reRow['uom'] : 'Not Observed' ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
@ -2986,11 +2964,29 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td class="customtd"><?php echo (++$stock_sr_no) ?></td>
|
||||
<td class="customtd"><?php echo $wsRow['type'] ?></td>
|
||||
<td class="customtd"><?php echo $wsRow['name'] ?></td>
|
||||
<td class="customtd"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($wsRow['value']) ?></td>
|
||||
<td class="customtd"><?php echo $wsRow['quantity'] ? $wsRow['quantity'].' '.$wsRow['uom'] : 'Not Observed' ?></td>
|
||||
<td class="customtd"><?php echo $wsRow['value'] && $wsRow['value'] != "" ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($wsRow['value']) : 'Not Observed' ?></td>
|
||||
<td class="customtd"><?php echo $wsRow['quantity'] && $wsRow['quantity'] != " " ? $wsRow['quantity'].' '.$wsRow['uom'] : 'Not Observed' ?></td>
|
||||
</tr>
|
||||
<?php }} ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
|
||||
//print_r($getstRow['service_stocks']);die();
|
||||
if(count($getstRow['service_stocks'])) { ?>
|
||||
<?php foreach($getstRow['service_stocks'] as $serviceRow){
|
||||
if($serviceRow['name']){
|
||||
?>
|
||||
<tr>
|
||||
<td class="customtd"><?php echo (++$stock_sr_no) ?></td>
|
||||
<td class="customtd"><?php echo $serviceRow['type'] ?></td>
|
||||
<td class="customtd"><?php echo $serviceRow['name'] ?></td>
|
||||
<td class="customtd"><?php echo $serviceRow['value'] && $serviceRow['value'] != '' ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($serviceRow['value']) : 'Not Observed'?></td>
|
||||
<td class="customtd"><?php echo $serviceRow['quantity'] && $serviceRow['quantity'] != ""? $serviceRow['quantity'].' '.$serviceRow['uom'] : 'Not Observed' ?></td>
|
||||
</tr>
|
||||
<?php }} ?>
|
||||
<?php } ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<?php }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user