SALES PD CHANGES AND PROD ISSUE
This commit is contained in:
parent
1b4bece74e
commit
9cee26105c
@ -443,8 +443,8 @@ class Sales_PD_Controller extends REST_Controller {
|
|||||||
$this->Sales_PD_Model->updateRecords($update_fields,SALES_PD_DATA,array('sales_pd_id' => $records['fk_sales_pd_id']));
|
$this->Sales_PD_Model->updateRecords($update_fields,SALES_PD_DATA,array('sales_pd_id' => $records['fk_sales_pd_id']));
|
||||||
|
|
||||||
//disable previous selfie img
|
//disable previous selfie img
|
||||||
$update_fields = array('isactive' => 0);
|
$update_fields2 = array('isactive' => 0);
|
||||||
$this->Sales_PD_Model->updateRecords($update_fields,SALEPD_DOCS,array('img_name' => 'selfie_with_person_met' ));
|
$this->Sales_PD_Model->updateRecords($update_fields2,SALEPD_DOCS,array('img_name' => 'selfie_with_person_met'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$id = $this->Sales_PD_Model->saveRecords($records,SALEPD_DOCS);
|
$id = $this->Sales_PD_Model->saveRecords($records,SALEPD_DOCS);
|
||||||
@ -740,8 +740,8 @@ class Sales_PD_Controller extends REST_Controller {
|
|||||||
|
|
||||||
$question['is_repeatable'] = "";
|
$question['is_repeatable'] = "";
|
||||||
$question['group_title'] = null;
|
$question['group_title'] = null;
|
||||||
$question['answer_value'] = $value['img'];
|
$question['answer_value'] = $exist_data_value['img'];
|
||||||
//$question['answer_value'] = "IMG";
|
$question['answer_value'] = "IMG";
|
||||||
$question['question'] = $photo_names [ $exist_data_value['img_name'] ];
|
$question['question'] = $photo_names [ $exist_data_value['img_name'] ];
|
||||||
$question['question_key'] = $exist_data_value['img_name'];
|
$question['question_key'] = $exist_data_value['img_name'];
|
||||||
$question['type'] = 6;
|
$question['type'] = 6;
|
||||||
@ -815,16 +815,16 @@ class Sales_PD_Controller extends REST_Controller {
|
|||||||
$question['api_properties'] = null;
|
$question['api_properties'] = null;
|
||||||
$question['answers'] = null;
|
$question['answers'] = null;
|
||||||
$question['onchange_properties'] = null;
|
$question['onchange_properties'] = null;
|
||||||
if($value['img_name'] == 'selfie_with_person_met')
|
if($photo_key == 'selfie_with_person_met')
|
||||||
{
|
{
|
||||||
$questions[] = [];
|
$questions[] = [];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$questions[ $photo_names [ $value['img_name'] ] ] ['is_repeatable'] = 1;
|
$questions[ $photo_key ] ['is_repeatable'] = 1;
|
||||||
$questions[ $photo_names [ $value['img_name'] ] ] ['group_title'] = $photo_value;
|
$questions[ $photo_key ] ['group_title'] = $photo_value;
|
||||||
$questions[ $photo_names [ $value['img_name'] ] ] ['group_type'] = 6;
|
$questions[ $photo_key ] ['group_type'] = 6;
|
||||||
$questions[ $photo_names [ $value['img_name'] ] ] ['questions_group'][0]['questions'][] = [];
|
$questions[ $photo_key ] ['questions_group'][0]['questions'][] = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,9 +3,20 @@
|
|||||||
class Financialform
|
class Financialform
|
||||||
{
|
{
|
||||||
//other loan obligations
|
//other loan obligations
|
||||||
public static function getOtherLoanDetails($values,$pdid){
|
public static function getOtherLoanDetails($data,$pdid){
|
||||||
|
|
||||||
|
$total_tables = count($data) / 5;
|
||||||
|
|
||||||
|
$total_tables = ceil($total_tables);
|
||||||
|
//print_r(array_values($values));
|
||||||
|
// die();
|
||||||
|
$overall_data = array();
|
||||||
|
$values = array_values($data);
|
||||||
|
|
||||||
$latest_applicants_names = APPLICANTNAME_GRABBER::getLatestApplicantsName($pdid);
|
$latest_applicants_names = APPLICANTNAME_GRABBER::getLatestApplicantsName($pdid);
|
||||||
|
|
||||||
|
for($i = 1;$i<= $total_tables;$i++)
|
||||||
|
{
|
||||||
$rupee_symbol = '<span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>';
|
$rupee_symbol = '<span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>';
|
||||||
$first_row = '<tr><td class="customtd">Loan Type</td>';
|
$first_row = '<tr><td class="customtd">Loan Type</td>';
|
||||||
$second_row = '<tr><td class="customtd">Loan Amount</td>';
|
$second_row = '<tr><td class="customtd">Loan Amount</td>';
|
||||||
@ -88,13 +99,26 @@ public static function getOtherLoanDetails($values,$pdid){
|
|||||||
$ninth_row .= $tag['elapsed_tenure'] ? '<td class="customtd">'.$tag['elapsed_tenure'].'</td>' : '<td class="customtd"> Not Provided </td>';
|
$ninth_row .= $tag['elapsed_tenure'] ? '<td class="customtd">'.$tag['elapsed_tenure'].'</td>' : '<td class="customtd"> Not Provided </td>';
|
||||||
$bal = is_numeric($tag['original_tenure']) && is_numeric($tag['elapsed_tenure']) ? ($tag['original_tenure'] - $tag['elapsed_tenure']) : 'Not Provided';
|
$bal = is_numeric($tag['original_tenure']) && is_numeric($tag['elapsed_tenure']) ? ($tag['original_tenure'] - $tag['elapsed_tenure']) : 'Not Provided';
|
||||||
$tenth_row .= '<td class="customtd">'.$bal.'</td>';
|
$tenth_row .= '<td class="customtd">'.$bal.'</td>';
|
||||||
}
|
|
||||||
}
|
|
||||||
return array(
|
|
||||||
'first_row' => $first_row.'</tr>','second_row' => $second_row.'</tr>','fourth_row' => $fourth_row.'</tr>','fifth_row' => $fifth_row.'</tr>','sixth_row' => $sixth_row.'</tr>','seventh_row' => $seventh_row.'</tr>','eigth_row' => $eigth_row.'</tr>', 'ninth_row' => $ninth_row.'</tr>', 'tenth_row' => $tenth_row.'</tr>','total_header' => $total_header
|
|
||||||
);
|
|
||||||
|
|
||||||
//return $values;
|
|
||||||
|
unset($values[$key]);
|
||||||
|
// echo count($values).' - keyy is - '.$key.'*';
|
||||||
|
if( $total_header == 5)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$overall_data[$i] = array(
|
||||||
|
'first_row' => $first_row.'</tr>','second_row' => $second_row.'</tr>','fourth_row' => $fourth_row.'</tr>','fifth_row' => $fifth_row.'</tr>','sixth_row' => $sixth_row.'</tr>','seventh_row' => $seventh_row.'</tr>','eigth_row' => $eigth_row.'</tr>', 'ninth_row' => $ninth_row.'</tr>', 'tenth_row' => $tenth_row.'</tr>','total_header' => $total_header);
|
||||||
|
// echo 'TABLE VALIUES - '.count($values);
|
||||||
|
}
|
||||||
|
//print_r($overall_data);die();
|
||||||
|
return $overall_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
// business financial details
|
// business financial details
|
||||||
|
|||||||
@ -4048,32 +4048,40 @@ if($total_no_of_business > 0) {
|
|||||||
|
|
||||||
|
|
||||||
The table below lists the details of Existing Loan Obligations of the Loan Applicants.
|
The table below lists the details of Existing Loan Obligations of the Loan Applicants.
|
||||||
|
<br><br>
|
||||||
|
<?php
|
||||||
|
$pre_loan_no = 0;
|
||||||
|
foreach($existLoanResult as $table_key => $single_table){
|
||||||
|
//print_r($single_table);die();
|
||||||
|
?>
|
||||||
<table class="scorecard_table_resonal_assest" >
|
<table class="scorecard_table_resonal_assest" >
|
||||||
<thead>
|
<!-- <thead> -->
|
||||||
<tr>
|
<tr>
|
||||||
<th>Particulars</th>
|
<th>Particulars</th>
|
||||||
<?php for($header = 1;$header <= $existLoanResult['total_header']; $header++ ) {echo "<th>Loan $header</th>";}?>
|
<?php for($header = 1;$header <= $single_table['total_header']; $header++ )
|
||||||
|
{ $pre_loan_no++; echo "<th>Loan $pre_loan_no</th>"; } ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
<!-- </thead> -->
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
echo $existLoanResult['first_row'];
|
echo $single_table['first_row'];
|
||||||
echo $existLoanResult['second_row'];
|
echo $single_table['second_row'];
|
||||||
//echo $existLoanResult['third_row'];
|
//echo $existLoanResult['third_row'];
|
||||||
echo $existLoanResult['fourth_row'];
|
echo $single_table['fourth_row'];
|
||||||
echo $existLoanResult['fifth_row'];
|
echo $single_table['fifth_row'];
|
||||||
echo $existLoanResult['sixth_row'];
|
echo $single_table['sixth_row'];
|
||||||
echo $existLoanResult['seventh_row'];
|
echo $single_table['seventh_row'];
|
||||||
echo $existLoanResult['eigth_row'];
|
echo $single_table['eigth_row'];
|
||||||
echo $existLoanResult['ninth_row'];
|
echo $single_table['ninth_row'];
|
||||||
echo $existLoanResult['tenth_row'];
|
echo $single_table['tenth_row'];
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<br>
|
||||||
<?php
|
<?php
|
||||||
//
|
}
|
||||||
}
|
}
|
||||||
else {?>
|
else {?>
|
||||||
<p>As per loan applicant he does not have any existing loan obligations.</p>
|
<p>As per loan applicant he does not have any existing loan obligations.</p>
|
||||||
|
|||||||
@ -118,7 +118,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td colspan="3"> Main Applicat Name</td>
|
<td colspan="3"> Name of Main Loan Applicant</td>
|
||||||
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['main_loan_applicant']?> </td>
|
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['main_loan_applicant']?> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user