PD REVIEW FEEDBACKS

This commit is contained in:
velz 2019-05-27 22:40:19 +05:30
parent abad107251
commit bb146b3398
5 changed files with 74 additions and 59 deletions

View File

@ -4957,7 +4957,7 @@ class PD_Controller extends REST_Controller {
// print_r($data['assessed_income_details']);
// echo "**************************";
$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] );
//$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] );
$score_for_chart = $data['pd_score']['score_summary']['overall_score']['final_score'] ? round($data['pd_score']['score_summary']['overall_score']['final_score'],1) : 0;
//echo $score_for_chart;die();
@ -5016,24 +5016,24 @@ class PD_Controller extends REST_Controller {
//echo "*******************************************";
$t = $this->load->view('report_templates/JSONTOREPORT',$data,true);
echo $t; die();
//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);
// 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));
// $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);
}
// 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_doc = $this->pdfgenerator->generate($t, $filename='version', $stream=false, $paper = 'A4', $orientation = "portrait");

Binary file not shown.

View File

@ -1,3 +1,3 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
$business_captions = array("no_of_years_business_run" => "Business Vintage >>", "location_suited_for_busienss" => "Business Location suitability >>", "business_seasonality" => "Seasonality >>", "employees_total" => "Employee Strength >>", "cerificates" => "Business Certifications Sighted >>","owned_property" => "Business Premise Ownership >>", "owned_vechile" => "Vehicle Ownership >>", "business_activity_has_seen" => "Business Activity Observed >>", "minimum_supplier_info" => "Supplier Information Shared >>", "minimum_client_info" => "Client Information Shared >>","stock_raw_material_enough" => "Raw Materials Stock Sufficiency >>", "stock_finished_goods_enough" => "Finished/Traded Stock Sufficiency >>", "vintage_of_business_account" => "Main Business Banking Account Vintage >>");$descriptions = '';$score = '';if(isset($business) && count($business)){foreach($business as $key => $d){$descriptions .= '"'.$business_captions [$key].'",'; $score .= $d['attributed_score'] != 0 && $d['max_score'] != 0 ? (($d['attributed_score']/$d['max_score']) * 100).',' : '0'.',';}}
?><html><head><script src="https://cdn.zingchart.com/zingchart.min.js"></script><link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <script>zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];</script><style>#myChart-wrapper {margin: auto;}.zc-ref {display: none;}</style></head><body><div id="myChart"><a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a></div><script>var myConfig = {"type": "hbar","font-family": "Helvetica","title": {"text": "Business Related Parameters","font-family": "Arial","background-color": "none","font-color": "#000","font-size":"18px"},"plot": {"borderRadius": 8,"hover-state": {"visible": false},},"plotarea": {"margin": "60px 70px 20px 300px"},"scale-x": {"line-color": "","values": [<?php echo $descriptions;?>],"tick": {"visible": false},"guide": {"visible": false},"item": {"font-size": "12px","padding-right": "0px","auto-align": true,"font-color": "#000"}},"scale-y": {"visible": false,"guide": {"visible": false}},"series": [ {"values": [<?php echo $score;?>],"bar-width": "25px","max-trackers": 0,"value-box": {"placement": "top","text": "%v%","decimals": 2,"font-color": "#000","font-size": "12px"},"rules": [{"rule": "%v <= 50","background-color": "#E53935"}, {"rule": "%v >= 50 && %i <= 70","background-color": "#ff9900"}, {"rule": "%v >= 70 && %i <= 80","background-color": "#99ff66"}, {"rule": "%v >= 80","background-color": "#33cc33"}]}]};zingchart.render({id: "myChart",data: myConfig,width: 800});</script></body></html>
?><html><head><script src="https://cdn.zingchart.com/zingchart.min.js"></script><link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <script>zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];</script><style>#myChart-wrapper {margin: auto;}.zc-ref {display: none;}</style></head><body><div id="myChart"></div><script>var myConfig = {"type": "hbar","font-family": "Helvetica","title": {"text": "Business Related Parameters impacting score","font-family": "Arial","background-color": "none","font-color": "#000","font-size":"18px"},"plot": {"borderRadius": 8,"hover-state": {"visible": false},},"plotarea": {"margin": "60px 70px 20px 300px"},"scale-x": {"line-color": "","values": [<?php echo $descriptions;?>],"tick": {"visible": false},"guide": {"visible": false},"item": {"font-size": "12px","padding-right": "0px","auto-align": true,"font-color": "#000"}},"scale-y": {"visible": false,"guide": {"visible": false}},"series": [ {"values": [<?php echo $score;?>],"bar-width": "25px","max-trackers": 0,"value-box": {"placement": "top","text": "%v%","decimals": 2,"font-color": "#000","font-size": "12px"},"rules": [{"rule": "%v <= 50","background-color": "#E53935"}, {"rule": "%v >= 50 && %i <= 70","background-color": "#ff9900"}, {"rule": "%v >= 70 && %i <= 80","background-color": "#99ff66"}, {"rule": "%v >= 80","background-color": "#33cc33"}]}]};zingchart.render({id: "myChart",data: myConfig,width: 800});</script></body></html>

View File

@ -1,3 +1,3 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
$general_captions = array("otp_done" => "OTP authentication done >>","person_met_is_applicant" => "Is person Met, a loan applicant >>","qualification" => "Qualification of Loan Applicants >>","comment_locality" => "Comment on Locality >>","pd_location_approach" => "Approach to PD location >>","customer_behaviour" => "Customer Behaviour >>","neibourhood_check_as_per_pd_officer" => "Neighbourhood check >>","was_the_company_name_board_sighted" => "Business Board Sighted >>","value_of_other_assets" => "Asset Value by Loan Amount % >>");$descriptions = '';$score = '';if(isset($general) && count($general)){foreach($general as $key => $d){$descriptions .= '"'.$general_captions [$key].'",'; $score .= $d['attributed_score'] != 0 && $d['max_score'] != 0 ? (($d['attributed_score']/$d['max_score']) * 100).',' : '0'.',';}}
?><html><head><script src="https://cdn.zingchart.com/zingchart.min.js"></script><link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <script>zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];</script><style>#myChart-wrapper {margin: auto;}.zc-ref {display: none;}</style></head><body><div id="myChart"><a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a></div><script>var myConfig = {"type": "hbar","font-family": "Helvetica","title": {"text": "Other PD Parameters","font-family": "Arial","background-color": "none","font-color": "#00","font-size":"18px"},"plot": {"borderRadius": 8,"hover-state": {"visible": false},},"plotarea": {"margin": "60px 70px 20px 300px"},"scale-x": {"line-color": "","values": [<?php echo $descriptions;?>],"tick": {"visible": false},"guide": {"visible": false},"item": {"font-size": "12px","padding-right": "0px","auto-align": true,"font-color": "#000"}},"scale-y": {"visible": false,"guide": {"visible": false}},"series": [ {"values": [<?php echo $score;?>],"bar-width": "25px","max-trackers": 0,"value-box": {"placement": "top","text": "%v%","decimals": 2,"font-color": "#000","font-size": "12px"},"rules": [{"rule": "%v <= 50","background-color": "#E53935"}, {"rule": "%v >= 50 && %i <= 70","background-color": "#ff9900"}, {"rule": "%v >= 70 && %i <= 80","background-color": "#99ff66"}, {"rule": "%v >= 80","background-color": "#33cc33"}]}]};zingchart.render({id: "myChart",data: myConfig,width: 800});</script></body></html>
?><html><head><script src="https://cdn.zingchart.com/zingchart.min.js"></script><link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <script>zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];</script><style>#myChart-wrapper {margin: auto;}.zc-ref {display: none;}</style></head><body><div id="myChart"></div><script>var myConfig = {"type": "hbar","font-family": "Helvetica","title": {"text": "Other PD Parameters impacting score","font-family": "Arial","background-color": "none","font-color": "#00","font-size":"18px"},"plot": {"borderRadius": 8,"hover-state": {"visible": false},},"plotarea": {"margin": "60px 70px 20px 300px"},"scale-x": {"line-color": "","values": [<?php echo $descriptions;?>],"tick": {"visible": false},"guide": {"visible": false},"item": {"font-size": "12px","padding-right": "0px","auto-align": true,"font-color": "#000"}},"scale-y": {"visible": false,"guide": {"visible": false}},"series": [ {"values": [<?php echo $score;?>],"bar-width": "25px","max-trackers": 0,"value-box": {"placement": "top","text": "%v%","decimals": 2,"font-color": "#000","font-size": "12px"},"rules": [{"rule": "%v <= 50","background-color": "#E53935"}, {"rule": "%v >= 50 && %i <= 70","background-color": "#ff9900"}, {"rule": "%v >= 70 && %i <= 80","background-color": "#99ff66"}, {"rule": "%v >= 80","background-color": "#33cc33"}]}]};zingchart.render({id: "myChart",data: myConfig,width: 800});</script></body></html>

View File

@ -246,8 +246,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
.gallery {
margin: 5px;
border: 1px solid #ccc;
width: 100px;
width: 100%;
}
@ -255,15 +254,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
border: 1px solid #777;
}
.gallery img {
width: 100%;
height: auto;
}
.desc {
padding: 8px;
text-align: center;
color:greenl
color:green
}
/* #########Doc sighted gallary css######### */
@ -656,16 +652,19 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<p><?php
$pd_address = $address_form['addresses'][0];
$pincode = $pd_address['pincode_others'] != "" || $pd_address['pincode_others'] != null ? $pd_address['pincode_others'] : $pd_address['pincode_master'];
echo '<b>PD Location Address : </b>'.$pd_address['address'].', '.$pd_address['city_master'].', '.$pd_address['state_master'].' - '.$pincode;
echo '<b>PD Location Address : </b>'.$pd_address['address'].', '.$pd_address['city_master'].', '.$pd_address['state_master'].' - '.$pincode.'.';
echo '<br><br><b> GPS Coordinates of location where PD Visit was done : </b>'.$pd_master_details[0]['start_location'];
echo '<br><br>';
?>
<img border="3" src =<?php echo $pd_master_details[0]['satellite_image_base64_blob'];?> alt="Satellite Image of location of Where PD was Done" style="width:500px;height:200px;border-color:#0191ed" /><br><br><br>
<img border="3" src =<?php echo $pd_master_details[0]['satellite_image_base64_blob'];?> alt="Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" /><br><br><br>
<!-- <img src ='http://ssa.sineedge.com/sparqapi/logo/sinelogo.png' alt="Approch to PD Location" style="width:150;height:50px;" />
<img src ='http://ssa.sineedge.com/sparqapi/logo/sinelogo.png' alt="Name Board" style="width:150;height:50px;" /> -->
<!-- <table style="width:70%;"><tr><td>
<img border="3" src ='https://www.thebalancesmb.com/thmb/3m0NLM8sjcFYHuafG77k7v4st1A=/735x0/515580866-573f839e3df78c6bb01f3bc3.jpg' alt="Approch to PD Location" style="width:100%;height:300px;border-color:#0191ed" />
</td><td>
<img border="3" src ='https://www.thebalancesmb.com/thmb/3m0NLM8sjcFYHuafG77k7v4st1A=/735x0/515580866-573f839e3df78c6bb01f3bc3.jpg' alt="Name Board" style="width:100%;height:300px;border-color:#0191ed" /> </td>
</tr>
</table> -->
<br><p><b>Location Summary</b></p>
<?php
@ -684,8 +683,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<p style="text-align:justify;">';
echo '<span contenteditable="true">The PD visit was done at </span><span contenteditable="false">'. $address_type. '</span><span contenteditable="true"> of the loan applicants.</span>';
echo '<span contenteditable="true">The </span><span contenteditable="false">'.$address_type.'</span><span contenteditable="true"> is </span><span contenteditable="false">'.$property_owner_type.'</span><span contenteditable="true"> and the business has been in operation from here for the last</span> <span contenteditable="false">'.$yrs_being_run.'.</span>';
echo '<br><br>The '.$address_type.' is located in '.$locality.' and the estimated area of the '.$address_type.' is '.$estimated_area.' .';
echo '<br><br>The PD location was '. $pd_address['pd_location_master'].'. ' . 'As Per PD Offcier, the '.$address_type .' is situated in '.$comment_locality_master .' Locality.';
echo '<br><br><span contenteditable="true">The</span> '.$address_type.' <span contenteditable="true">is located in </span>'.$locality.' <span contenteditable="true">and the estimated area of the</span> '.$address_type.' <span contenteditable="true">is</span> '.$estimated_area.' <span contenteditable="true">.</span>';
echo '<br><br><span contenteditable="true">The PD location was </span>'. $pd_address['pd_location_master'].'. ' . '<span contenteditable="true">As Per PD Offcier, the</span> '.$address_type .' <span contenteditable="true">is situated in</span> '.$comment_locality_master .' <span contenteditable="true">Locality.</span>';
echo '<br><br><span contenteditable="true">The PD officer also made the following observations:</span>' ;
echo '<br><ul>';
@ -742,7 +741,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$loan_table_dispaly_rows[] = array('particulars' => 'Top Up Amount applied for','details' => "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>"." ".MYUTIL::customIndianNumberFormat($loan_form['topup_amount']).' ('.MYUTIL::numtowords($loan_form['topup_amount']).')');
$loan_table_dispaly_rows[] = array('particulars' => 'End Use Topup','details' => ($loan_form['end_use_topup_master']));
$loan_table_dispaly_rows[] = array('particulars' => 'End Use of Topup','details' => ($loan_form['end_use_topup_master']));
$loan_table_dispaly_rows[] = array('particulars' => 'Balance Transfer from','details' => $loan_form['lender_master']);
@ -879,7 +878,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$bindEachResult['business_peak_details']=Businessform::getBusinessPeakDetails($businessRow['peak_period_of_business']);
}
else{
$bindEachResult['business_peak_details']='The Business has no major changes in sales across seasons.';
$bindEachResult['business_peak_details']='The Business has no major changes in sales across seasons<span contenteditable="true">.</span>';
}
$bindEachResult['company_employees'] = '';
@ -903,18 +902,18 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
else //Both permanent and Temporary employess zero count
{
$bindEachResult['company_employees'].= ' There are no permanant and temporary employess with company';
$bindEachResult['company_employees'].= ' There are no permanant and temporary employess with company<span contenteditable="true">.</span>';
}
if(isset($businessRow['officer_total']) && $businessRow['officer_total'] > 0)
{
$emp = $businessRow['officer_total'] > 1 ? 'employees' : 'employee';
$bindEachResult['officer_visit_company_employees']='At the time of PD visit, the officer sighted '.$businessRow['officer_total'] .' '.$emp.' at the business premises.';
$bindEachResult['officer_visit_company_employees']='At the time of PD visit, the officer sighted '.$businessRow['officer_total'] .' '.$emp.' at the business premises<span contenteditable="true">.</span>';
}
else{
$bindEachResult['officer_visit_company_employees']='At the time of PD visit, PD officer could not able to see any of employees at the business premises.';
$bindEachResult['officer_visit_company_employees']='At the time of PD visit, PD officer could not able to see any of employees at the business premises<span contenteditable="true">.</span>';
}
//this is documents visited
$getDocuments=array();
@ -979,7 +978,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php foreach($fetchRow['partner'] as $partRow){
?>
<tr>
<td><?php echo $partRow['name'] ?></td>
<td class="customtd"><?php echo $partRow['name'] ?></td>
<td class="customtd"><?php echo $partRow['share_holding'] ?></td>
<td class="customtd"><?php echo $partRow['no_years_business'] ?></td>
<td class="customtd"><?php echo $partRow['total_experience']?></td>
@ -1063,8 +1062,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</tbody>
</table>
<div class='page_break'></div>
<p><strong>Brief of the Business / Service Model </strong></p>
</br></br></br></br>
<p>Brief of the Business / Service Model </p>
<table class="scorecard_table">
<thead>
<tr> <th>Product / Service</th> <th>Process Brief</th> </tr>
@ -1072,7 +1071,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<tbody>
<?php foreach($fetchRow['manufacturing'] as $process_brief){?>
<tr> <td class="customtd"><?php echo $process_brief['products']; ?></td> <td><?php echo $process_brief['description']; ?></td> </tr>
<tr> <td class="customtd"><?php echo $process_brief['products']; ?></td> <td><?php echo '<p style="text-align:justify;">'.$process_brief['description'].'</p>'; ?></td> </tr>
<?php } ?>
</tbody>
</table>
@ -1115,8 +1114,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</tbody>
</table>
<div class='page_break'></div>
<p><strong>Brief of the Business / Service Model </strong></p>
</br></br></br></br>
<p>Brief of the Business / Service Model </p>
<table class="scorecard_table">
<thead>
<tr> <th>Product / Service</th> <th>Process Brief</th> </tr>
@ -1167,8 +1166,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</table>
<div class='page_break'></div>
<p><strong>Brief of the Business / Service Model </strong></p>
</br></br></br></br>
<p>Brief of the Business / Service Model </p>
<table class="scorecard_table">
<thead>
<tr> <th>Product / Service</th> <th>Process Brief</th> </tr>
@ -1288,25 +1287,38 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<p>The below documents were sighted during the visit :</p>
<table>
<!--Gallary Started -->
<tr>
<?php
foreach($fetchRow['visit_documents'] as $dValue) {
<?php
$visit_documents = ($fetchRow['visit_documents']);
$visit_documents_row_count = ceil(count($fetchRow['visit_documents'])/2);
for($vrc = 1;$vrc <= $visit_documents_row_count;$vrc++)
{
$from = $vrc == 1 ? 1 : ( $vrc + 1);
$to = ($from + 1);
echo '<tr>';
for ($doc = $from; $doc <= $to ; $doc++){
?>
<td>
<div class="gallery">
<img src="<?php echo $dValue['img']; ?>" alt="" width="200" height="200">
<div class="desc"><?php echo $dValue['name']?></div>
<img src="<?php echo $visit_documents[$doc]['img']; ?>" alt="" width="300" height="300">
<div class="desc"><?php echo $visit_documents[$doc]['name']?></div>
</div>
</td>
<?php } ?>
</tr>
<?php
}
echo '</tr>';
} ?>
</table>
<!--Gallary Ended -->
<?php } ?>
<?php
//die();
} ?>
<!-- end documents details -->
@ -1941,7 +1953,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$supplier_second_row .= ' '.$raw['manufacturing_supplier_name'].'</td>';
$temp['supplier_second_row'] = $supplier_second_row.'</tr>';
$temp['supplier_third_row'] = '<tr><td class="customtd">3</td><td class="customtd_leftalign">Mobile Number </td>'.'<td class="customtd">'. isset($raw['manufacturing_contact_person_mobile_number']) ? $raw['manufacturing_contact_person_mobile_number'] : 'Not Provided' .'</td></tr>';
$temp['supplier_third_row'] = '<tr><td class="customtd">3</td><td class="customtd_leftalign">Mobile Number </td>'.'<td class="customtd">'. (isset($raw['manufacturing_contact_person_mobile_number']) ? $raw['manufacturing_contact_person_mobile_number'].'</td></tr>' : 'Not Provided' .'</td></tr>');
$temp['supplier_fourth_row'] = '<tr><td class="customtd">4</td><td class="customtd_leftalign">Landline No</td>';
@ -1991,7 +2003,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$supplier_second_row .= ' '.$tradeRow['trade_supplier_name'].'</td>';
$temp['supplier_second_row'] = $supplier_second_row.'</tr>';
$temp['supplier_third_row'] = '<tr><td class="customtd">3</td><td class="customtd_leftalign">Mobile Number </td>'.'<td class="customtd">'. isset($tradeRow['trade_product_contact_person_mobile_number']) ? $tradeRow['trade_product_contact_person_mobile_number'] : 'Not Provided' .'</td></tr>';
$temp['supplier_third_row'] = '<tr><td class="customtd">3</td><td class="customtd_leftalign">Mobile Number </td>'.'<td class="customtd">'. (isset($tradeRow['trade_product_contact_person_mobile_number']) ? $tradeRow['trade_product_contact_person_mobile_number'].'</td></tr>' : 'Not Provided' .'</td></tr>');
$temp['supplier_fourth_row'] = '<tr><td class="customtd">4</td><td class="customtd_leftalign">Landline No</td>';
@ -2018,6 +2030,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
// echo "dsfnsdkfnj**********";
// print_r($supplierResult);
//die();
//echo $supplierResult[0]['supplier_third_row'];die();
if(count($supplierResult))
{
?>
@ -2051,7 +2064,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</table>
<?php }//} ?>
<?php if($total_payments_percent_on_credit_for_supplier > 0)
<?php
//die();
if($total_payments_percent_on_credit_for_supplier > 0)
{
echo "<p>Have to make payment of about ". $total_payments_percent_on_credit_for_supplier ." % in advance rest on delivery.</p>";
}
@ -2205,7 +2220,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
// echo count($pd_images[11]);
// die();
$stock_img_row_count = ceil(count($stock_photo_count) / 5);
$stock_img_row_count = ceil(count($stock_photo_count) / 3);
//echo $stock_img_row_count;
if(count($stock_photo_count)){
echo '<br>';
@ -2227,8 +2242,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
echo '<tr>';
$from = $img_row == 1 ? $img_row : ($img_row+4);
$to = ($from + 4);
$from = $img_row == 1 ? $img_row : ($img_row+2);
$to = ($from + 2);
for($stock_photo_iter = $from; $stock_photo_iter <= $to;$stock_photo_iter++)
{