changes (informed by venkat): ps
This commit is contained in:
parent
54f58f98d8
commit
c44ac95068
@ -16,25 +16,25 @@ public static function getanchordetails($loan_form){
|
||||
|
||||
$payment_mechanism_arr = array('bill_wise' => 'Bill Wise','open_account' => 'Open Account');
|
||||
$sales_low_months=SELF::getMonths($loan_form['sales_low_months']);
|
||||
|
||||
if((int)$loan_form['vintage_anchor_year'] > 1 ){ $yr = $loan_form['vintage_anchor_year']." Years";}
|
||||
else if((int)$loan_form['vintage_anchor_year'] == 1 ){ $yr = $loan_form['vintage_anchor_year']." Year"; }
|
||||
else{ $yr = ''; }
|
||||
|
||||
// if($loan_form['vintage_anchor_year'] > 1 ){ $yr = $loan_form['vintage_anchor_year']."Yrs";}
|
||||
// else if($loan_form['vintage_anchor_year'] == 1 ){ $yr = $loan_form['vintage_anchor_year']."Yr"; }
|
||||
// else{ $yr = ''; }
|
||||
if((int)$loan_form['vintage_anchor_month'] > 1 ){ $mnt = $loan_form['vintage_anchor_month']." Months";}
|
||||
else if((int)$loan_form['vintage_anchor_month'] == 1 ){ $mnt = $loan_form['vintage_anchor_month']." Month"; }
|
||||
else{ $mnt = ''; }
|
||||
|
||||
// if($loan_form['vintage_anchor_month'] > 1 ){ $mnt = $loan_form['vintage_anchor_month']."Months";}
|
||||
// else if($loan_form['vintage_anchor_month'] == 1 ){ $mnt = $loan_form['vintage_anchor_month']."Month"; }
|
||||
// else{ $mnt = ''; }
|
||||
|
||||
// if($mnt != '' && $yr != '' ){ $yrandmnt = $yr.' and '.$mnt; }
|
||||
// else if($mnt == '' && $yr != ''){ $yrandmnt = $yr; }
|
||||
// else if($mnt != '' && $yr == ''){ $yrandmnt = $mnt; }
|
||||
// else{ $yrandmnt = '-';}
|
||||
if($mnt != '' && $yr != '' ){ $yrandmnt = $yr.' and '.$mnt; }
|
||||
else if($mnt == '' && $yr != ''){ $yrandmnt = $yr; }
|
||||
else if($mnt != '' && $yr == ''){ $yrandmnt = $mnt; }
|
||||
else{ $yrandmnt = '-';}
|
||||
|
||||
$anchor_details_display[] = array('particulars' => "Facility Amount Applied For (".$rupee_symbol.")",'details' => $rupee_symbol." ".$facility_amt.' ('.MYUTIL::numtowords($loan_form['facility_amount']).')');
|
||||
$anchor_details_display[] = array('particulars' => "Name of Anchor",'details' => $loan_form['anchor_name']);
|
||||
$anchor_details_display[] = array('particulars' => "Applicant's association vintage with the Anchor Year",'details' => $loan_form['vintage_anchor_year']);
|
||||
$anchor_details_display[] = array('particulars' => "Applicant's association vintage with the Anchor Month",'details' => $loan_form['vintage_anchor_month']);
|
||||
// $anchor_details_display[] = array('particulars' => "Applicant's association vintage with the Anchor Year and Month",'details' => $yrandmnt );
|
||||
// $anchor_details_display[] = array('particulars' => "Applicant's association vintage with the Anchor Year",'details' => $loan_form['vintage_anchor_year']);
|
||||
// $anchor_details_display[] = array('particulars' => "Applicant's association vintage with the Anchor Month",'details' => $loan_form['vintage_anchor_month']);
|
||||
$anchor_details_display[] = array('particulars' => "Applicant's association vintage with the Anchor Year and Month",'details' => $yrandmnt );
|
||||
$anchor_details_display[] = array('particulars' => "Monthly business (sale/purchase) with the Anchor (".$rupee_symbol.")",'details' => $rupee_symbol." ".$monthly_business_anchor_amt.' ('.MYUTIL::numtowords($loan_form['monthly_business_anchor']).')');
|
||||
$anchor_details_display[] = array('particulars' => "Business concentration with Anchor",'details' => $loan_form['business_concentration'].' %');
|
||||
$anchor_details_display[] = array('particulars' => "Credit period with the Anchor (Days)",'details' => $loan_form['credit_period_days']);
|
||||
|
||||
@ -556,7 +556,9 @@ if ( isset($pdf) ) {
|
||||
<?php
|
||||
//echo "<p>Loan Amount Applied For : </p>";
|
||||
//echo '<table align="center">
|
||||
echo '<tr> <td >'.$loan_word.' Amount<br>(As Per PD Initiation) </td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr><tr> <td>'.$loan_word.' Amount<br>(As Per '.$loan_word.' Applicants during PD)</td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($loan_form['loan_amount']) .')</span></td> </tr>';
|
||||
$pd_initiation_loan_amt = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? $loan_form['loan_amount'] : $loan_form['facility_amount'];
|
||||
echo '<tr> <td >'.$loan_word.' Amount<br>(As Per PD Initiation) </td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr><tr> <td>'.$loan_word.' Amount<br>(As Per '.$loan_word.' Applicants during PD)</td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_initiation_loan_amt). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_initiation_loan_amt) .')</span></td> </tr>';
|
||||
// echo '<tr> <td >'.$loan_word.' Amount<br>(As Per PD Initiation) </td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr><tr> <td>'.$loan_word.' Amount<br>(As Per '.$loan_word.' Applicants during PD)</td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($loan_form['loan_amount']) .')</span></td> </tr>';
|
||||
echo '</tbody></table>';
|
||||
//echo "<div class='page_break'></div>";
|
||||
echo "<br><br>";
|
||||
|
||||
@ -563,7 +563,9 @@ if ( isset($pdf) ) {
|
||||
<?php
|
||||
//echo "<p>Loan Amount Applied For : </p>";
|
||||
//echo '<table align="center">
|
||||
echo '<tr> <td >'.$loan_word.' Amount<br>(As Per PD Initiation) </td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr><tr> <td>'.$loan_word.' Amount<br>(As Per '.$loan_word.' Applicants during PD)</td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($loan_form['loan_amount']) .')</span></td> </tr>';
|
||||
$pd_initiation_loan_amt = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? $loan_form['loan_amount'] : $loan_form['facility_amount'];
|
||||
echo '<tr> <td >'.$loan_word.' Amount<br>(As Per PD Initiation) </td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr><tr> <td>'.$loan_word.' Amount<br>(As Per '.$loan_word.' Applicants during PD)</td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_initiation_loan_amt). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_initiation_loan_amt) .')</span></td> </tr>';
|
||||
// echo '<tr> <td >'.$loan_word.' Amount<br>(As Per PD Initiation) </td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr><tr> <td>'.$loan_word.' Amount<br>(As Per '.$loan_word.' Applicants during PD)</td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($loan_form['loan_amount']) .')</span></td> </tr>';
|
||||
echo '</tbody></table>';
|
||||
//echo "<div class='page_break'></div>";
|
||||
echo "<br><br>";
|
||||
|
||||
@ -558,7 +558,9 @@ if ( isset($pdf) ) {
|
||||
<?php
|
||||
//echo "<p>Loan Amount Applied For : </p>";
|
||||
//echo '<table align="center">
|
||||
echo '<tr> <td >'.$loan_word.' Amount<br>(As Per PD Initiation) </td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr><tr> <td>'.$loan_word.' Amount<br>(As Per '.$loan_word.' Applicants during PD)</td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($loan_form['loan_amount']) .')</span></td> </tr>';
|
||||
$pd_initiation_loan_amt = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? $loan_form['loan_amount'] : $loan_form['facility_amount'];
|
||||
echo '<tr> <td >'.$loan_word.' Amount<br>(As Per PD Initiation) </td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr><tr> <td>'.$loan_word.' Amount<br>(As Per '.$loan_word.' Applicants during PD)</td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_initiation_loan_amt). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_initiation_loan_amt) .')</span></td> </tr>';
|
||||
// echo '<tr> <td >'.$loan_word.' Amount<br>(As Per PD Initiation) </td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr><tr> <td>'.$loan_word.' Amount<br>(As Per '.$loan_word.' Applicants during PD)</td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($loan_form['loan_amount']) .')</span></td> </tr>';
|
||||
echo '</tbody></table>';
|
||||
//echo "<div class='page_break'></div>";
|
||||
echo "<br><br>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user