CHFL REPORT CHANGES & NOTIFY & INDEX CHNAGES

This commit is contained in:
Velz2020 2020-02-05 15:05:25 +05:30
parent 9cad7bf537
commit 9a8792c731
4 changed files with 75 additions and 9 deletions

View File

@ -2051,7 +2051,7 @@ public function assignPDTempalate($data)
//Get All PD Logs
$result_data['pd_logs'] = $this->PD_Model->getPDLogs($pdid);
//print_r($result_data['pd_logs']);die();
if(count($result_data['pd_logs']))
if(count($result_data['pd_logs']) && isset($result_data['pd_logs']['last_status_update_date']))
{
$result_data['pd_master_details'][0]['maser_updatedon'] = $result_data['pd_master_details'][0]['updatedon'];
$result_data['pd_master_details'][0]['updatedon'] = DATE_FORMAT(date_create_from_format("Y-m-d H:i:s",$result_data['pd_logs']['last_status_update_date']),"d/m/Y h:i:s a");

View File

@ -27,7 +27,7 @@ class PUSH_NOTIFICATION
$web_msg = array
(
'title'=> $msg,
'title'=> $additional_data['to_whom'] .' - '. $additional_data['pd_status'],
'body'=> $msg,
'icon' => 'https://pdgenie.com/logo/sinelogo.png',
'img' => 'https://pdgenie.com/logo/sinelogo.png'
@ -43,7 +43,7 @@ class PUSH_NOTIFICATION
$app_msg = array
(
'message'=> $msg,
'title'=> $msg,
'title'=> $additional_data['pd_status'],
'subtitle'=> $msg,
'tickerText'=> $msg,
'vibrate'=>1,

View File

@ -2159,6 +2159,17 @@ if($total_no_of_business > 0) {
$bindBusinessFinancial['customer_statements_header']=array();
$bindBusinessFinancial['is_customer_statement'] = 0;
}
// ############### this section only for CLIX HOUSING FINANCE LENDER
if(strtoupper($businessFinancialRow['is_turnover_validated']) == 'YES')
{
$bindBusinessFinancial['turnover_statements']=FINANCIALFORM::getBusinessCustomerFinancialDetails($businessFinancialRow['turnover_values']);
$bindBusinessFinancial['customer_statements_header']=FINANCIALFORM::getBusinessCustomerHeader($businessFinancialRow['turnover_values']);
$bindBusinessFinancial['how_turnover_validated'] = (!strcasecmp( strtolower($businessFinancialRow['how_turnover_validated']),'others')) ? 'Validated from '.$businessFinancialRow['turnover_validated_others'] : $businessFinancialRow['how_turnover_validated'];
$bindBusinessFinancial['is_turnover_validated'] = 1;
}
// ############### this section only for CLIX HOUSING FINANCE LENDER
$bindBusinessFinancial['working_capital_receive'] = $businessFinancialRow['receive_the_money_in_days'];
$bindBusinessFinancial['working_capital_pay'] = $businessFinancialRow['pay_the_money_in_days'];
$bindBusinessFinancial['working_capital_unsold_stock'] = is_numeric($businessFinancialRow['unsold_stock_lies_in_days']) ? $businessFinancialRow['unsold_stock_lies_in_days'] : 'Data Not Provided';
@ -2344,14 +2355,69 @@ if($total_no_of_business > 0) {
<?php
if($iterateFinance['estimate_posmachine_or_cc_annual_sales'] != null)
{
echo '<p>As per Loan Applicant(s) met,'. $rupee_symbol . ' '. MYUTIL:: customIndianNumberFormat($iterateFinance['estimate_posmachine_or_cc_annual_sales']) .' as Annual sales through credit cards / POS machines.</p>';
echo '<p>As per Loan Applicant(s) met,'. $rupee_symbol . ' '. MYUTIL::customIndianNumberFormat($iterateFinance['estimate_posmachine_or_cc_annual_sales']) .' as Annual sales through credit cards / POS machines.</p>';
};
} ?>
<?php }
}//else { echo "<p> As per Loan Applicant(s) met, the financials figures were not provided. </p>"; }
?>
// ####################### THIS SECTION ONLY FOR CLIX HOUSING FINANCE LENDER ##########################-->
foreach($iterateFinance['turnover_statements'] as $turnover){
if(!strcasecmp($turnover['estimate_net_margin_availablity'],'yes')){
?>
<p> Turnover Validated During PD: </p>
<table class="scorecard_table">
<thead>
<tr>
<th rowspan=2>Particulars</th> <th colspan=2>Range provided</th> <th rowspan=2>Final Considered</th>
</tr>
<tr> <th>From</th> <th>To</th> </tr>
</thead>
<tbody>
<tr>
<td>Sales / Revenue (Rs)</td> <td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($turnover['estimate_sales_from']) ?></td><td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($turnover['estimate_sales_to']) ?></td><td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($turnover['estimate_sales_average']) ?></td>
</tr>
<tr>
<td>Net Profit or (Net Loss) to Sales %</td> <td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($turnover['net_profit_loss_sales_per_from']).'%' ?></td><td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($turnover['net_profit_loss_sales_per_to']).'%' ?></td><td class="customtd" <?php echo $turnover['estimate_profit_or_loss'] ? "style='color:green'" : "style='color:green'";?> ><?php echo MYUTIL:: customIndianNumberFormat($turnover['net_profit_loss_sales_final_per']).'%' ?></td>
</tr>
<tr>
<td colspan=3>Net Profit / (Net Loss) (Rs) >>>></td> <td class="customtd" <?php echo $turnover['estimate_profit_or_loss'] ? "style='color:green'" : "style='color:green'";?>><?php echo MYUTIL::customIndianNumberFormat($turnover['net_profit_loss_sales_final_rs']) ?></td>
</tr>
</tbody></table>
<?php } else{ ?>
<p> Turnover Validated During PD: </p>
<table class="scorecard_table">
<thead>
<tr>
<th rowspan=2>Particulars</th> <th colspan=2>Range provided</th> <th rowspan=2>Final Considered</th>
</tr>
<tr> <th>From</th> <th>To</th> </tr>
</thead>
<tbody>
<tr>
<td>Sales / Revenue (Rs)</td> <td class="customtd"><?php echo MYUTIL::customIndianNumberFormat($turnover['estimate_sales_from']) ?></td><td class="customtd"><?php echo MYUTIL::customIndianNumberFormat($turnover['estimate_sales_to']) ?></td><td class="customtd"><?php echo MYUTIL::customIndianNumberFormat($turnover['estimate_sales_average']) ?></td>
</tr>
<tr>
<td>Net Profit or (Net Loss) to Sales (Rs) </td> <td class="customtd"><?php echo MYUTIL::customIndianNumberFormat($turnover['net_profit_loss_sales_per_from']) ?></td><td class="customtd"><?php echo MYUTIL::customIndianNumberFormat($turnover['net_profit_loss_sales_per_to']) ?></td><td class="customtd" <?php echo $turnover['estimate_profit_or_loss']? "style='color:green'" : "style='color:green'";?> ><?php echo MYUTIL:: customIndianNumberFormat($turnover['net_profit_loss_sales_final_per']) ?></td>
</tr>
<tr>
<td colspan=3> Net Profit / (Net Loss)% >>>> </td> <td class="customtd" <?php echo $turnover['estimate_profit_or_loss'] ? "style='color:green'" : "style='color:green'";?> ><?php echo MYUTIL:: customIndianNumberFormat($turnover['net_profit_loss_sales_final_rs']).'%' ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php }
echo '<br>Turnover and Netprofit was '.$iterateFinance['how_turnover_validated']
?>
<!-- ####################### THIS SECTION ONLY FOR CLIX HOUSING FINANCE LENDER ##########################-->
<?php
//echo $iterateFinance['working_capital_receive'].$iterateFinance['working_capital_pay'].$iterateFinance['working_capital_unsold_stock'];

View File

@ -55,24 +55,24 @@
*/
date_default_timezone_set('Asia/Kolkata');
if(isset($_SERVER['HTTP_HOST']) && !strcasecmp($_SERVER['HTTP_HOST'],'demo.pdgenie.com') && isset($_SERVER['REQUEST_URI']) && substr_count($_SERVER['REQUEST_URI'], 'sparqapi') == 1)
if(isset($_SERVER['HTTP_HOST']) && (!strcasecmp($_SERVER['HTTP_HOST'],'demo.pdgenie.com') || !strcasecmp($_SERVER['HTTP_HOST'],'apitest.pdgenie.com') ) && isset($_SERVER['REQUEST_URI']) && substr_count($_SERVER['REQUEST_URI'], 'sparqapi') == 1)
{
define('ENVIRONMENT','development');
define('XLPATH','/mnt/ssa_external_data/'.ENVIRONMENT);
}
else if(isset($_SERVER['HTTP_HOST']) && !strcasecmp($_SERVER['HTTP_HOST'],'demo.pdgenie.com') && isset($_SERVER['REQUEST_URI']) && substr_count($_SERVER['REQUEST_URI'], 'sparqtest') == 1)
else if(isset($_SERVER['HTTP_HOST']) && (!strcasecmp($_SERVER['HTTP_HOST'],'demo.pdgenie.com') || !strcasecmp($_SERVER['HTTP_HOST'],'apitest.pdgenie.com')) && isset($_SERVER['REQUEST_URI']) && substr_count($_SERVER['REQUEST_URI'], 'sparqtest') == 1)
{
define('ENVIRONMENT','testing');
define('XLPATH','/mnt/ssa_external_data/'.ENVIRONMENT);
}
else if(isset($_SERVER['HTTP_HOST']) && !strcasecmp($_SERVER['HTTP_HOST'],'pdgenie.com') && isset($_SERVER['REQUEST_URI']) && substr_count($_SERVER['REQUEST_URI'], 'sparqprod') == 1)
else if(isset($_SERVER['HTTP_HOST']) && ( !strcasecmp($_SERVER['HTTP_HOST'],'pdgenie.com') || !strcasecmp($_SERVER['HTTP_HOST'],'api.pdgenie.com')) && isset($_SERVER['REQUEST_URI']) && substr_count($_SERVER['REQUEST_URI'], 'sparqprod') == 1)
{
define('ENVIRONMENT','production');
define('XLPATH','/mnt/ssa_external_data/'.ENVIRONMENT);
}
else if(isset($_SERVER['HTTP_HOST']) && !strcasecmp($_SERVER['HTTP_HOST'],'localhost') && isset($_SERVER['REQUEST_URI']) && substr_count($_SERVER['REQUEST_URI'], 'sparqapi') == 1)
{
define('ENVIRONMENT','development');
define('ENVIRONMENT','testing');
define('XLPATH',$_SERVER['DOCUMENT_ROOT'].'/ssa_external_data/'.ENVIRONMENT);
}