94610431046 PDF 500 ERROR RESLOVED

This commit is contained in:
Velz2020 2019-07-06 17:07:02 +05:30
parent a689e56584
commit f3b46e8812
3 changed files with 57 additions and 50 deletions

View File

@ -5140,25 +5140,8 @@ class PD_Controller extends REST_Controller {
$t = substr_replace($t,'',strpos($t,'<span class="tooltip">'),(strlen('<span class="tooltip">'))); $t = substr_replace($t,'',strpos($t,'<span class="tooltip">'),(strlen('<span class="tooltip">')));
} }
//echo $t; echo $t;
//die();
// if (!is_dir(APPPATH.'views/pd_reports/'.$pdid)) {
// $dust = mkdir(APPPATH.'views/pd_reports/'.$pdid, 0777, TRUE);
// }
// $pd_report_time = date('Y-m-d-h-i-s');
// $pd_report_store = APPPATH.'views/pd_reports/'.$pdid.'/'.$pd_report_time.'.html';
// file_put_contents($pd_report_store,$t);
// $update = $this->PD_Model->updateRecords(array('pd_report_html_filename' => $pd_report_time),PDTRIGGER,array('pd_id' => $pdid));
// if(count($update))
// {
// $dat['dataStatus'] = true;
// $dat['status'] = REST_Controller::HTTP_OK;
// $dat['msg'] = 'Report Generated Sucessfully..!';
// $this->response($dat,REST_Controller::HTTP_OK);
// }
//PDF Gen using DOM PDF //PDF Gen using DOM PDF
$pdf_doc = $this->pdfgenerator->generate($t, $filename='version', $stream=false, $paper = 'A4', $orientation = "portrait"); $pdf_doc = $this->pdfgenerator->generate($t, $filename='version', $stream=false, $paper = 'A4', $orientation = "portrait");
@ -6883,6 +6866,8 @@ class PD_Controller extends REST_Controller {
#####Address Form Questions######## #####Address Form Questions########
if($client != "WEB")
{
if(count($pd_images[5])) if(count($pd_images[5]))
{ {
$approach_image_count = 0; $approach_image_count = 0;
@ -6904,7 +6889,7 @@ class PD_Controller extends REST_Controller {
$incomplete_details[] = 'Address Section - Approach to PD location Image not captured'; $incomplete_details[] = 'Address Section - Approach to PD location Image not captured';
} }
}
#####Business Form Questions######## #####Business Form Questions########
$business_form = (json_decode($form_data[13][0]['processed_json'],true)); $business_form = (json_decode($form_data[13][0]['processed_json'],true));
//print_r($business_form);die(); //print_r($business_form);die();
@ -7084,7 +7069,6 @@ class PD_Controller extends REST_Controller {
if(count($supplier_form)) if(count($supplier_form))
{ {
if(array_key_exists('manufacturing_details',$supplier_form)) if(array_key_exists('manufacturing_details',$supplier_form))
{ {
if(isset($supplier_form['manufacturing_details'][0]['main_raw_materials'])) if(isset($supplier_form['manufacturing_details'][0]['main_raw_materials']))
@ -7166,6 +7150,10 @@ class PD_Controller extends REST_Controller {
{ {
$incomplete_details[] = 'Supplier Section - '.$supplier_name.' - Images Not Found'; $incomplete_details[] = 'Supplier Section - '.$supplier_name.' - Images Not Found';
} }
}
else if($trading_value['trade_product_name'] == "" && $trading_value['trade_supplier_name'] == "" && $trading_value['trade_product_contact_person_name'] != "" && ($trading_value['trade_product_contact_person_mobile_number'] == "" || $trading_value['person_landline'] == ""))
{
} }
else else
{ {
@ -7230,6 +7218,10 @@ class PD_Controller extends REST_Controller {
$incomplete_details[] = 'Client Section - '.$client_name .'- Images Not Found'; $incomplete_details[] = 'Client Section - '.$client_name .'- Images Not Found';
} }
}
else if($value['manufacturing_product_name'] == "" && $value['manufacturing_client_name'] == "" && $value['manufacturing_contact_person_name'] == "" && ($value['manufacturing_contact_person_mobile_number'] == "" || $value['person_landline'] == ""))
{
} }
else else
{ {
@ -7271,6 +7263,10 @@ class PD_Controller extends REST_Controller {
{ {
$incomplete_details[] = 'Client Section - '.$client_name .'- Images Not Found'; $incomplete_details[] = 'Client Section - '.$client_name .'- Images Not Found';
} }
}
else if($value['trade_product_name'] == "" && (isset($value['trade_client_name'])) && $value['trade_client_name'] == "" && $value['trade_product_contact_person_name'] == "" && ($value['trade_product_contact_person_mobile_number'] == "" || $value['person_landline'] == ""))
{
} }
else else
{ {
@ -7312,6 +7308,10 @@ class PD_Controller extends REST_Controller {
$incomplete_details[] ='Client Section - ' .$client_name .'- Images Not Found'; $incomplete_details[] ='Client Section - ' .$client_name .'- Images Not Found';
} }
}
else if($value['service_provider_product_name'] == "" && $value['service_provider_client_name'] == "" && $value['service_provider_product_contact_person_name'] == "" && ($value['service_provider_product_contact_person_mobile_number'] == "" || $value['person_landline'] == ""))
{
} }
else else
{ {

Binary file not shown.

View File

@ -209,7 +209,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
/*font-family: Merriweather;*/ /*font-family: Merriweather;*/
border-collapse: collapse; border-collapse: collapse;
width: auto; width: auto;
//display:inline;
} }
.billwise_table td, .billwise_table th { .billwise_table td, .billwise_table th {
@ -262,7 +262,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
#billwise { #billwise {
box-sizing: content-box; box-sizing: content-box;
disply:inline; /*disply:inline;*/
width: 100%; width: 100%;
height: auto; height: auto;
padding: 10px; padding: 10px;
@ -306,7 +306,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
/* #########Person met card css######### */ /* #########Person met card css######### */
.chip { .chip {
/*display: inline-block;*/
padding: 0 25px; padding: 0 25px;
height: 100px; height: 100px;
width: 600px; width: 600px;
@ -432,7 +432,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo "<h2><center>".$main_applicant_name."</center></h2>"; echo "<h2><center>".$main_applicant_name."</center></h2>";
echo "</div>"; echo "</div>";
echo "<br><br><br><br>"; echo "<br><br><br><br>";`
?> ?>
<table> <table>
<tbody> <tbody>
@ -891,6 +891,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$final_remark_data = json_decode($pd_processed_forms[20][0]['processed_json'],true) ; $final_remark_data = json_decode($pd_processed_forms[20][0]['processed_json'],true) ;
$business_assets_details = json_decode($pd_processed_forms[22][0]['processed_json'],true); $business_assets_details = json_decode($pd_processed_forms[22][0]['processed_json'],true);
//print_r($business_assets_details);die();
$address_images = $pd_images[5]; $address_images = $pd_images[5];
//print_r($address_images);die(); //print_r($address_images);die();
@ -1965,6 +1966,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
?> ?>
<?php foreach($iterateFinance['customer_statements'] as $csRow){
if(!strcasecmp($csRow['estimate_net_margin_availablity'],'yes')){
?>
<table class="scorecard_table"> <table class="scorecard_table">
<thead> <thead>
<tr> <tr>
@ -1973,9 +1978,6 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<tr> <th>From</th> <th>To</th> </tr> <tr> <th>From</th> <th>To</th> </tr>
</thead> </thead>
<tbody> <tbody>
<?php foreach($iterateFinance['customer_statements'] as $csRow){
if(!strcasecmp($csRow['estimate_net_margin_availablity'],'yes')){
?>
<tr> <tr>
<td>Sales / Revenue (Rs)</td> <td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($csRow['estimate_sales_from']) ?></td><td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($csRow['estimate_sales_to']) ?></td><td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($csRow['estimate_sales_average']) ?></td> <td>Sales / Revenue (Rs)</td> <td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($csRow['estimate_sales_from']) ?></td><td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($csRow['estimate_sales_to']) ?></td><td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($csRow['estimate_sales_average']) ?></td>
</tr> </tr>
@ -1987,8 +1989,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</tr> </tr>
</tbody></table> </tbody></table>
<?php }else{ ?> <?php } else{ ?>
<table> <table class="scorecard_table">
<thead> <thead>
<tr> <tr>
<th rowspan=2>Particulars</th> <th colspan=2>Range provided</th> <th rowspan=2>Final Considered</th> <th rowspan=2>Particulars</th> <th colspan=2>Range provided</th> <th rowspan=2>Final Considered</th>
@ -2016,17 +2018,20 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}else { echo "<p> As per Loan Applicant(s) met, the financials figures were not provided. </p>"; } }else { echo "<p> As per Loan Applicant(s) met, the financials figures were not provided. </p>"; }
?> ?>
<?php } ?> <?php
} ?>
<p><strong>Working Capital Cycle:</strong></p> <p><strong>Working Capital Cycle:</strong></p>
<table class="scorecard_table"> <table class="scorecard_table">
<thead> <tr> <th>S.No</th> <th>Particulars</th> <th>Days</th> </tr> </thead> <thead> <tr> <th>S.No</th> <th>Particulars</th> <th>Days</th> </tr> </thead>
<tbody> <tbody>
<tr> <td class="customtd">1</td> <td class="customtd">Debtor Days</td> <td class="customtd"><?php echo $iterateFinance['working_capital_receive']?></td> </tr> <tr> <td class="customtd">1</td> <td class="customtd">Debtor Days</td> <td class="customtd"><?php echo $iterateFinance['working_capital_receive'] != "" ? $iterateFinance['working_capital_receive'] :"Data Not provided"?></td> </tr>
<tr> <td class="customtd">2</td> <td class="customtd">Creditor Days</td> <td class="customtd"><?php echo $iterateFinance['working_capital_pay']?></td></tr> <tr> <td class="customtd">2</td> <td class="customtd">Creditor Days</td> <td class="customtd"><?php echo $iterateFinance['working_capital_pay'] != "" ? $iterateFinance['working_capital_pay'] : "Data Not Provided"?></td></tr>
<tr> <td class="customtd">3</td> <td class="customtd">Stock Days</td> <td class="customtd"><?php echo $iterateFinance['working_capital_unsold_stock']?></td></tr> <tr> <td class="customtd">3</td> <td class="customtd">Stock Days</td> <td class="customtd"><?php echo $iterateFinance['working_capital_unsold_stock']?></td></tr>
</tbody> </tbody>
</table> </table>
<?php if($iterateFinance['is_working_capital_facility'] != "" ){ ?>
<p><strong>Working Capital Facilities:</strong></p> <p><strong>Working Capital Facilities:</strong></p>
<?php if(strcasecmp($iterateFinance['is_working_capital_facility'],'no')){?> <?php if(strcasecmp($iterateFinance['is_working_capital_facility'],'no')){?>
<table class="scorecard_table"> <table class="scorecard_table">
@ -2038,7 +2043,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}?> }?>
</tbody> </tbody>
</table> </table>
<?php }else{echo "<p>The Loan Applicants have not availed any Working Capital Facilities from any financial institution.<p>";} ?> <?php }else{echo "<p>The Loan Applicants have not availed any Working Capital Facilities from any financial institution.<p>";}
}
?>
<?php <?php