CASE 849 fixed

This commit is contained in:
velz 2019-05-22 12:44:33 +05:30
parent e9aa47ffa8
commit da4222c9a8
4 changed files with 85 additions and 58 deletions

Binary file not shown.

View File

@ -225,10 +225,11 @@ public static function getBusinessAssetsDetails($values){
break;
case 'OWNED':
$storeValue['ownership'] = 'OWNED';
$storeValue['business_assets_mode_master'] = $fetchVal['business_assets_mode_master'];
$storeValue['rent_amount'] = 'NA';
$storeValue['business_name_of_the_owner'] = $fetchVal['business_name_of_the_owner']['id']==0 ? $fetchVal['business_name_of_the_other_owner'] : $fetchVal['business_name_of_the_owner']['name'];
$storeValue['business_name_of_the_owner'] = $fetchVal['business_name_of_the_owner'][0]['id']==0 ? $fetchVal['business_name_of_the_other_owner'] : $fetchVal['business_name_of_the_owner'][0]['name'];
$storeValue['about_business_assets'] = $fetchVal['business_details'][0]['any_other_assets'];
//.' purchased in '. $fetchVal['business_purchase_year'].' at Rs.'.$fetchVal['business_details'][0]['any_other_asset_value'];
$storeValue['business_approximate_market_value'] = 'Rs.'.$fetchVal['business_approximate_market_value'];

View File

@ -49,7 +49,8 @@ public static function getStockRetailDetails($goods){
$getUom= $tag['traded_goods_uom']==1 ? $tag['traded_goods_other_uom'] : (isset($tag['uom_master']) ? $tag['uom_master'] : '');
$getSufficient= (strtoupper($tag['traded_goods_observed']) =='NO') ? 'No Stock Observed' : ((strtoupper($tag['is_sufficiant_traded_goods']) =='YES') ? 'Yes, the stock of traded goods observed' : 'No, the stock of traded goods observed because of '.$tag['traded_goods_remarks']);
return array(
'name' => $tag['traded_goods_name'],
'type' => 'Trading Goods',
'name' => $tag['traded_goods_name'],
'quantity' => strtoupper($tag['traded_goods_observed'])=='YES' ? $tag['traded_goods_quantity'] : '',
'uom' => strtoupper($tag['traded_goods_observed'])=='YES' ? $getUom : '',
'value' => strtoupper($tag['traded_goods_observed'])=='YES' ? $tag['estimated_traded_goods_value'] : '',
@ -69,6 +70,7 @@ public static function getStockWholesaleDetails($goods){
$getSufficient= (strtoupper($tag['traded_goods_observed']) =='NO') ? 'No Stock Observed' : ((strtoupper($tag['is_sufficiant_traded_goods']) =='YES') ? 'Yes, the stock of traded goods observed' : 'No, the stock of traded goods observed because of '.$tag['traded_goods_remarks']);
return array(
'name' => $tag['traded_goods_name'],
'type' => 'Trading Goods',
'quantity' => strtoupper($tag['traded_goods_observed'])=='YES' ? $tag['traded_goods_quantity'] : '',
'uom' => strtoupper($tag['traded_goods_observed'])=='YES' ? $getUom : '',
'value' => strtoupper($tag['traded_goods_observed'])=='YES' ? $tag['estimated_traded_goods_value'] : '',

View File

@ -792,7 +792,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$bRow = $pd_processed_forms[13][$business_count];
$businessRow = json_decode($bRow['processed_json'],true);
//print_r($businessRow);die();
$companyList = MYUTIL::findCompanyName($all_company_details,$businessRow['company_id'],2);
//$companyList .=' The director details are as under :';
$bindEachResult["company_details"]=$companyList;
@ -862,6 +862,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
else{
$bindEachResult['business_peak_details']='The Business has no major changes in sales across season.';
}
$bindEachResult['company_employees'] = '';
// this is for no of employess details
if(isset($businessRow['employees_permanent']) && $businessRow['employees_permanent'] <= 0) {
$bindEachResult['company_empployees']='As per person met there are no permanent';
@ -873,6 +874,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
$bindEachResult['company_employees'].= 'and '.$businessRow['employees_temporary'].' temporary employee(s) with company.';
}else{
$bindEachResult['company_employees'].= ' and no temporary employess with company';
}
if(isset($businessRow['officer_total']) && $businessRow['officer_total'] > 0)
@ -881,6 +883,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$bindEachResult['officer_visit_company_employees']='At the time of PD visit, the officer sighted '.$businessRow['officer_total'] .' '.$emp.' at the business premises.';
}
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.';
}
//this is documents visited
@ -1291,7 +1294,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$baRow = $pd_processed_forms[22][$business_count];
$businessAssetRow = json_decode($baRow['processed_json'],true);
//print_r($businessAssetRow);
//print_r($businessAssetRow);echo "*************";
$bindBusinessAsset["company_name"] ='Assets used for ';
$bindBusinessAsset["company_name"] .=MYUTIL::findCompanyName($all_company_details,$businessAssetRow['company_id'],1);
$bindBusinessAsset["company_name"] .=' Business :';
@ -1392,6 +1395,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$bindBusinessFinancial['working_capital_pay'] = $businessFinancialRow['pay_the_money_in_days'];
$bindBusinessFinancial['working_capital_unsold_stock'] = $businessFinancialRow['unsold_stock_lies_in_days'] != "" || $businessFinancialRow['unsold_stock_lies_in_days'] != null ? $businessFinancialRow['unsold_stock_lies_in_days'] : 'Data Not Provided';
$bindBusinessFinancial['is_working_capital_facility'] = $businessFinancialRow['is_there_working_capital_available'];
if(isset($businessFinancialRow['select_working_capital_facilities_availed']))
{
foreach($businessFinancialRow['select_working_capital_facilities_availed'] as $k => $v)
{
switch($v['id'])
@ -1424,9 +1429,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
break;
}
}
}
$bindBusinessFinancial['working_capital_facilites'] = $businessFinancialRow['select_working_capital_facilities_availed'];
$bindBusinessFinancial['working_capital_facilites'] = isset($businessFinancialRow['select_working_capital_facilities_availed']) ? $businessFinancialRow['select_working_capital_facilities_availed'] : null;
//print_r($bindBusinessFinancial['select_working_capital_facilities_availed']);die(); //FINANCIALFORM::getAvailableFacilities($businessFinancialRow[-'"working_capital_facilities_availed']);
@ -1435,15 +1440,19 @@ defined('BASEPATH') OR exit('No direct script access allowed');
?>
<?php if(count($businessFinancialResult)>0){ ?>
<?php if(count($businessFinancialResult)>0){
?>
<div id='page_break'></div>
<h3>Financial Information</h3>
<?php foreach($businessFinancialResult as $iterateFinance){
//print_r($iterateFinance);die();
if(count($iterateFinance['statements'])>0){
?>
<p><?php echo "<strong>Company / Firm Name : </strong>" . $iterateFinance['company_name']; ?></p>
<p><?php echo "<strong>No of Years of Financial Statements provided : </strong>" . $iterateFinance['years_data_provided']; ?></p>
<p><?php echo "<strong>Snapshot of Financials as per Books of Account Provided : </strong>"; ?></p>
<?php if(count($iterateFinance['statements'])>0){ ?>
<?php ?>
<table class="scorecard_table">
<thead>
@ -1567,7 +1576,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<p>Financial information is not available.</p>
<?php } //die();?>
<!--################# end business financial #################-->
<div class='page_break'></div>
<!-- start business banking section -->
<?php
@ -1684,7 +1693,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
//print_r($main_raw_material);
$client_first_row .= '<td class="customtd">'.$main_raw_material['manufacturing_product_name'].'</td>';
$client_second_row .= $main_raw_material['person_title_name_master'] ? '<td class="customtd">' . $main_raw_material['person_title_name_master']: '<td class="customtd">' . '';
$client_second_row .= isset($main_raw_material['person_title_name_master']) ? '<td class="customtd">' . $main_raw_material['person_title_name_master']: '<td class="customtd">';
$client_second_row .= $main_raw_material['manufacturing_contact_person_name'] ;
$client_second_row .= isset($main_raw_material['person_designation']) && $main_raw_material['person_designation']== 1 ? ' '.$main_raw_material['other_person_designation'] : ' ';//
@ -1693,7 +1702,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$client_second_row .= ' '.$main_raw_material['manufacturing_client_name'].'</td>';
$client_third_row .= '<td class="customtd">'. $main_raw_material['manufacturing_contact_person_mobile_number'] .'</td>';
$client_third_row .= '<td class="customtd">'.$main_raw_material['manufacturing_contact_person_mobile_number'] ? $main_raw_material['manufacturing_contact_person_mobile_number'] : 'Not Provided' .'</td>';
$client_fourth_row .= $main_raw_material['person_stdcode'] && $main_raw_material['person_landline'] ? '<td class="customtd">'. $main_raw_material['person_stdcode'].' '.$main_raw_material['person_landline'].'</td>' : '<td class="customtd">'.'Not Provided'.'</td>';
@ -1724,7 +1733,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$client_first_row .= '<td class="customtd">'.$trading_product['trade_product_name'].'</td>';
$client_second_row .= $trading_product['person_title_name_master'] ? '<td class="customtd">' . $trading_product['person_title_name_master']: '<td class="customtd">' . '';
$client_second_row .= isset($trading_product['person_title_name_master']) ? '<td class="customtd">' . $trading_product['person_title_name_master']: '<td class="customtd">';
$client_second_row .= $trading_product['trade_product_contact_person_name'] ;
$client_second_row .= isset($trading_product['person_designation']) && $trading_product['person_designation']== 1 ? ' '.$trading_product['other_person_designation'] : ' ';//
@ -1733,7 +1742,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$client_second_row .= ' '.$trading_product['trade_client_name'].'</td>';
$client_third_row .= '<td class="customtd">'. $trading_product['trade_product_contact_person_mobile_number'] .'</td>';
$client_third_row .= '<td class="customtd">'. $trading_product['trade_product_contact_person_mobile_number'] ? $trading_product['trade_product_contact_person_mobile_number'] : 'Not Provided'.'</td>';
$client_fourth_row .= $trading_product['person_stdcode'] && $trading_product['person_landline'] ? '<td class="customtd">'. $trading_product['person_stdcode'].' '.$trading_product['person_landline'].'</td>' : '<td class="customtd">'.'Not Provided'.'</td>';
@ -1765,7 +1774,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$client_first_row .= '<td class="customtd">'.$service_product['service_provider_product_name'].'</td>';
$client_second_row .= $service_product['person_title_name_master'] ? '<td class="customtd">' . $service_product['person_title_name_master']: '<td class="customtd">' . '';
$client_second_row .= isset($service_product['person_title_name_master']) ? '<td class="customtd">' . $service_product['person_title_name_master']: '<td class="customtd">';
$client_second_row .= $service_product['service_provider_product_contact_person_name'] ;
$client_second_row .= isset($service_product['person_designation']) && $service_product['person_designation']== 1 ? ' '.$service_product['other_person_designation'] : ' ';//
@ -1774,7 +1783,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$client_second_row .= ' '.$service_product['service_provider_client_name'].'</td>';
$client_third_row .= '<td class="customtd">'. $service_product['service_provider_product_contact_person_mobile_number'] .'</td>';
$client_third_row .= '<td class="customtd">'. $service_product['service_provider_product_contact_person_mobile_number'] ? $service_product['service_provider_product_contact_person_mobile_number'] : 'Not Provided' .'</td>';
$client_fourth_row .= $service_product['person_stdcode'] && $service_product['person_landline'] ? '<td class="customtd">'. $service_product['person_stdcode'].' '.$service_product['person_landline'].'</td>' : '<td class="customtd">'.'Not Provided'.'</td>';
@ -1849,7 +1858,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
// this is for manufacturing
$supplier_details = $pd_processed_forms[1][$business_count];
$supplierRow = json_decode($supplier_details['processed_json'],true);
//print_r($supplierRow);
//print_r($supplierRow['trade_details']);die();
$company_name = MYUTIL::findCompanyName($all_company_details,$supplierRow['company_id'],1);
$total_no_of_suppliers = count($supplierRow['manufacturing_details']);
$total_payments_percent_on_credit_for_supplier = 0;
@ -1867,7 +1876,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$supplier_second_row = '<tr><td class="customtd">2</td><td class="customtd_leftalign">Contact Person </td>';
$supplier_second_row .= $raw['person_title_name_master'] ? '<td class="customtd">' . $raw['person_title_name_master']: '<td class="customtd">' . '';
$supplier_second_row .= isset($raw['person_title_name_master']) ? '<td class="customtd">' . $raw['person_title_name_master']: '<td class="customtd">' . '';
$supplier_second_row .= $raw['manufacturing_contact_person_name'] ;
$supplier_second_row .= isset($raw['person_designation']) && $raw['person_designation']== 1 ? ' '.$raw['other_person_designation'] : ' ';//
@ -1877,7 +1886,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">'. $raw['manufacturing_contact_person_mobile_number'] .'</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'] : 'Not Provided' .'</td></tr>';
$temp['supplier_fourth_row'] = '<tr><td class="customtd">4</td><td class="customtd_leftalign">Landline No</td>';
@ -1900,54 +1909,60 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
}
// this is for trading
foreach(isset($clientRow['trade_details']) && $clientRow['trade_details'] as $tradeRow){
//print_r($supplierRow['trade_details'][0]['trading_products']);
if(isset($supplierRow['trade_details'][0]['trading_products']) && count($supplierRow['trade_details'][0]['trading_products']))
{
foreach($supplierRow['trade_details'][0]['trading_products'] as $tradeRow){
$total_payments_percent_on_credit_for_supplier = $clientRow['trade_details'][0]['trading_products_total_payments_percent_on_credit'];
$total_payments_percent_on_credit_for_supplier = $supplierRow['trade_details'][0]['trading_products_total_payments_percent_on_credit'];
if(isset($tradeRow['trading_products'])){
//if(isset($tradeRow['trading_products'])){
foreach($tradeRow['trading_products'] as $trade){
//foreach($tradeRow['trading_products'] as $trade){
$temp['supplier_first_row'] = '<tr><td class="customtd">1</td><td class="customtd_leftalign">Item Purchased </td>'.'<td class="customtd">'.$trade['trade_product_name'].'</td></tr>';
$temp['supplier_first_row'] = '<tr><td class="customtd">1</td><td class="customtd_leftalign">Item Purchased </td>'.'<td class="customtd">'.$tradeRow['trade_product_name'].'</td></tr>';
$supplier_second_row = '<tr><td class="customtd">2</td><td class="customtd_leftalign">Contact Person </td>';
$supplier_second_row .= $trade['person_title_name_master'] ? '<td class="customtd">' . $trade['person_title_name_master']: '<td class="customtd">' . '';
$supplier_second_row .= $trade['trade_product_contact_person_name'] ;
$supplier_second_row .= isset($tradeRow['person_title_name_master']) ? '<td class="customtd">' . $tradeRow['person_title_name_master']: '<td class="customtd">' . '';
$supplier_second_row .= $tradeRow['trade_product_contact_person_name'] ;
$supplier_second_row .= isset($trade['person_designation']) && $trade['person_designation']== 1 ? ' '.$trade['other_person_designation'] : ' ';//
$supplier_second_row .= isset($tradeRow['person_designation']) && $tradeRow['person_designation']== 1 ? ' '.$tradeRow['other_person_designation'] : ' ';//
$supplier_second_row .= isset($trade['person_designation_master']) ? $trade['person_designation_master'] : '' ;
$supplier_second_row .= isset($tradeRow['person_designation_master']) ? $tradeRow['person_designation_master'] : '' ;
$supplier_second_row .= ' '.$trade['trade_supplier_name'].'</td>';
$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">'. $trade['trade_product_contact_person_mobile_number'] .'</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'] : 'Not Provided' .'</td></tr>';
$temp['supplier_fourth_row'] = '<tr><td class="customtd">4</td><td class="customtd_leftalign">Landline No</td>';
$temp['supplier_fourth_row'] .= $trade['person_stdcode'] && $trade['person_landline'] ? '<td class="customtd">'. $trade['person_stdcode'].' '.$trade['person_landline'].'</td></tr>' : '<td class="customtd">'.'Not Provided'.'</td></tr>';
$temp['supplier_fourth_row'] .= $tradeRow['person_stdcode'] && $tradeRow['person_landline'] ? '<td class="customtd">'. $tradeRow['person_stdcode'].' '.$tradeRow['person_landline'].'</td></tr>' : '<td class="customtd">'.'Not Provided'.'</td></tr>';
$temp['supplier_fifth_row'] = '<tr><td class="customtd">5</td><td class="customtd_leftalign">Payment Terms</td>';
$temp['supplier_fifth_row'] .= $trade['trade_product_payment_type_master'] ? '<td class="customtd">'. $trade['trade_product_payment_type_master'] .'</td></tr>' : '<td class="customtd">NA</td></tr>';
$temp['supplier_fifth_row'] .= $tradeRow['trade_product_payment_type_master'] ? '<td class="customtd">'. $tradeRow['trade_product_payment_type_master'] .'</td></tr>' : '<td class="customtd">NA</td></tr>';
$temp['supplier_sixth_row'] = '<tr><td class="customtd">6</td><td class="customtd_leftalign">Payment Mode</td>';
$temp['supplier_sixth_row'] .= $trade['trade_product_payment_mode'] ? '<td class="customtd">'. $trade['trade_product_payment_mode'] .'</td></tr>' : '<td class="customtd">NA</td></tr>';
$temp['supplier_sixth_row'] .= $tradeRow['trade_product_payment_mode'] ? '<td class="customtd">'. $tradeRow['trade_product_payment_mode'] .'</td></tr>' : '<td class="customtd">NA</td></tr>';
$temp['supplier_seventh_row'] = '<tr><td class="customtd">7</td><td class="customtd_leftalign">No of Days Credit</td>';
$temp['supplier_seventh_row'] .= $trade['trade_product_credit_days_from'] && $trade['trade_product_credit_days_to'] ? '<td class="customtd">'. $trade['trade_product_credit_days_from'].' to '. $trade['trade_product_credit_days_to'].' days</td></tr>' : '<td class="customtd">NA</td></tr>';
$temp['supplier_seventh_row'] .= $tradeRow['trade_product_credit_days_from'] && $tradeRow['trade_product_credit_days_to'] ? '<td class="customtd">'. $tradeRow['trade_product_credit_days_from'].' to '. $tradeRow['trade_product_credit_days_to'].' days</td></tr>' : '<td class="customtd">NA</td></tr>';
array_push($supplierResult,$temp);
}
}
//}
//}
}
}
}
// echo "dsfnsdkfnj**********";
// print_r($supplierResult);
//die();
if(count($supplierResult))
{
?>
@ -1996,7 +2011,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$stockResult=array();
$stRow = $pd_processed_forms[11][$business_count];
$stockRow = json_decode($stRow['processed_json'],true);
//print_r($stockRow);die();
//print_r($stockRow);
$is_stock_sufficient_enough = $stockRow['is_sufficiant_finished_and_traded_goods'];
$is_raw_materials_sufficient_enough = null;
$bindStockResult["company_name"]=MYUTIL::findCompanyName($all_company_details,$stockRow['company_id'],1);
@ -2026,19 +2041,18 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
count($bindStockResult['wholesale']) || count($bindStockResult['retail']) || count($bindStockResult['manufacturing'])? array_push($stockResult,$bindStockResult) : $stockResult;
//echo "**********************";
//print_r($stockResult);die();
?>
<?php
if(count($stockResult)){ ?>
if(count($stockResult)){
$stock_sr_no = 0;
?>
<h3>Stock Details</h3>
<?php foreach($stockResult as $getstRow) { ?>
<h3><?php echo $getstRow['company_name']; ?></h3>
<!-- manufacturing -->
<?php if(count($getstRow['manufacturing'])>0) { ?>
<table class="scorecard_table">
<thead>
<tr>
@ -2048,10 +2062,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<th>Stock Value (Rs)</th>
<th>Stock Quantity</th>
</tr>
</thead>
</thead>
<tbody>
<?php
$stock_sr_no = 0;
<!-- manufacturing -->
<?php if(count($getstRow['manufacturing'])>0) {
foreach($getstRow['manufacturing'] as $pstRow){
if($pstRow['name']){
?>
@ -2070,10 +2084,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php } ?>
<!-- Retail -->
<?php if(count($getstRow['retail'])>0) { ?>
<?php if(count($getstRow['retail'])) {
//print_r(($getstRow['retail']));die();
?>
<?php foreach($getstRow['retail'] as $reRow){
if($reRow['name']){
?>
<tr>
<td class="customtd"><?php echo (++$stock_sr_no) ?></td>
<td class="customtd"><?php echo $reRow['type'] ?></td>
@ -2081,10 +2098,16 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<td class="customtd"><?php echo $reRow['value'] ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($reRow['value']) : 'Not Observed' ?></td>
<td class="customtd"><?php echo $reRow['quantity'] ? $reRow['quantity'].' '.$reRow['uom'] : 'Not Observed' ?></td>
</tr>
<?php }} ?>
<?php } ?>
<?php }
} ?>
<?php }
?>
<!-- wholesale -->
<?php if(count($getstRow['wholesale'])>0) { ?>
<?php
//print_r($getstRow['wholesale']);die();
if(count($getstRow['wholesale'])) { ?>
<?php foreach($getstRow['wholesale'] as $wsRow){
if($wsRow['name']){
?>
@ -2092,7 +2115,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<td class="customtd"><?php echo (++$stock_sr_no) ?></td>
<td class="customtd"><?php echo $wsRow['type'] ?></td>
<td class="customtd"><?php echo $wsRow['name'] ?></td>
<td class="customtd"><?php echo $wsRow['value'] ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($wsRow['value']): 'Not Observed' ?></td>
<td class="customtd"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($wsRow['value']) ?></td>
<td class="customtd"><?php echo $wsRow['quantity'] ? $wsRow['quantity'].' '.$wsRow['uom'] : 'Not Observed' ?></td>
</tr>
<?php }} ?>
@ -2621,6 +2644,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php if(count($familyResult)>0){
//print_r($familyResult);die();
?>
<div id='page_break'></div>
<h3>Family Information:</h3>
<?php foreach($familyResult as $fmKey => $fmValue) { ?>
<!-- <p><strong><?php //echo ($fmKey+1).'. '.$fmValue['selected_person']; ?></strong></p> -->
@ -2751,6 +2775,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
// }
}
?>
<div id='page_break'></div>
<h3>Neighbourhood / Reference Check</h3>
<?php if(count($existNeighRefCheck)>0){
//print_r($existNeighRefCheck);die();
@ -2786,7 +2811,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<div class="page_break"></div>
<h3>PD OFFICERS REMARKS ON CUSTOMER BEHAVOUR, BUSINESS LOCATION & OVERALL PD STATUS</h3>
<?php
//print_r($final_remark_data['recommendation_negative']);die();
//print_r($final_remark_data);die();
$polite = null;$rude = null; $other_behaviour = null;$other_behaviour_remarks = null;
$fair = null;$well = null;$not = null;
@ -2813,7 +2838,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$other_pd_officer_command = 1;
$other_command_remark = $final_remark_data['others_pd_officers_recommendation'];
}
$pd_officer_final_remark = $final_remark_data['final_form_remarks'];
//$pd_officer_final_remark = $final_remark_data['final_form_remarks'];
@ -2930,7 +2955,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}else if($negative){ echo "<ul>"; foreach($final_remark_data['recommendation_negative'] as $neg){ echo "<li>".$neg['reason_for_negative']."</li>";}
}
else if($refer_to_credit){ echo "<ul>"; foreach($final_remark_data['recommendation_positive'] as $rtc){ echo "<li>".$rtc['reason_for_refer_to_credit']."</li>";}
else if($refer_to_credit){ echo "<ul>"; foreach($final_remark_data['recommendation_refer_to_credit'] as $rtc){ echo "<li>".$rtc['reason_for_refer_to_credit']."</li>";}
}
echo "</ul>";
?>
@ -3022,7 +3047,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$question = MYUTIL::findQuestionByKey($score_questions_display,$key);
$span = '<span style="font-size:9px">('.$business['l1_weightage'].'% * '. $business['l2_weightage'].'% * '.$business['score_band'].')</span>';
$max_span = '<span style="font-size:9px">('.$business['l1_weightage'].'% * '. $business['l2_weightage'].'% * '.$business['max_score_band'].')</span>';
if($key != 'cerificates' || $key != 'location_suited_for_busienss')
if(($key != 'cerificates') && ($key != 'location_suited_for_busienss'))
{
echo '<tr>'.'<td>'.$question.'</td><td class="customtd">'.$business['l2_weightage'].'%</td><td class="customtd">'.$business['answer'].'</td><td class="customtd">'.$business['score_band'].'</td><td class="customtd">'.$business['attributed_score'].'<br>'.$span.'</td><td class="customtd">'.$business['max_score'].'<br>'.$max_span.'</td></tr>';
}
@ -3030,8 +3056,6 @@ defined('BASEPATH') OR exit('No direct script access allowed');
if($key == 'location_suited_for_busienss')
{
echo '<tr>'.'<td>'.$question.'</td><td class="customtd">'.$business['l2_weightage'].'%</td><td class="customtd">'.$address_type_remarks_caption[ $business['answer'] ].'</td><td class="customtd">'.$business['score_band'].'</td><td class="customtd">'.$business['attributed_score'].'<br>'.$span.'</td><td class="customtd">'.$business['max_score'].'<br>'.$max_span.'</td></tr>';
}
if($key == 'cerificates')