AI FEED BACK
This commit is contained in:
parent
0121317c9d
commit
a689e56584
@ -5112,9 +5112,10 @@ class PD_Controller extends REST_Controller {
|
||||
//print_r($data['pd_images']);die(); //print_r(json_decode($data['pd_processed_forms'][14][0]['processed_json'],true));
|
||||
//die();
|
||||
//echo "*******************************************";
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT',$data,true);
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT',$data,true);
|
||||
//$t = $this->load->view('temp_html.html',null,true);
|
||||
echo $t;die();
|
||||
//echo $t;
|
||||
//die();
|
||||
|
||||
$total_replaces = substr_count($t,'<span class="tooltip">');
|
||||
//echo $total_replaces;
|
||||
@ -6915,7 +6916,19 @@ class PD_Controller extends REST_Controller {
|
||||
array_push($selected_type_of_activity,$value['type_of_activity_id']);
|
||||
|
||||
}
|
||||
if($business_form['employees_temporary'] == "" || $business_form['employees_permanent'] == "" || $business_form['employees_appx_salary'] == "")
|
||||
$is_name_board_seen = false;
|
||||
if($business_form['was_the_company_name_board_sighted'] == "")
|
||||
{
|
||||
$incomplete_details[] = 'Business Section - Name Board Seen Not answered';
|
||||
|
||||
}
|
||||
else if($business_form['was_the_company_name_board_sighted'] == "yes")
|
||||
{
|
||||
$is_name_board_seen = true;
|
||||
}
|
||||
|
||||
|
||||
if( !is_numeric($business_form['employees_temporary']) || !is_numeric($business_form['employees_permanent']) || !is_numeric($business_form['employees_appx_salary']) || !is_numeric($business_form['officer_total']))
|
||||
{
|
||||
$incomplete_details[] = 'Business Section - Company Employees Details Not Filled';
|
||||
}
|
||||
@ -6925,16 +6938,17 @@ class PD_Controller extends REST_Controller {
|
||||
{
|
||||
$certificate_count = 0;
|
||||
$name_board_image_count = 0;
|
||||
if(count($pd_images[13]))
|
||||
{
|
||||
foreach ($pd_images[13] as $key => $value) {
|
||||
if(substr_count(strtolower($value['pd_document_title']),strtolower('Name board Seen')))
|
||||
{
|
||||
$name_board_image_count++;
|
||||
|
||||
if(count($pd_images[13]))
|
||||
{
|
||||
foreach ($pd_images[13] as $key => $value) {
|
||||
if(substr_count(strtolower($value['pd_document_title']),strtolower('Name board Seen')))
|
||||
{
|
||||
$name_board_image_count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!$name_board_image_count){ $incomplete_details[] = 'Busienss Section - Business Name Board Image not captured'; }
|
||||
if(!$name_board_image_count){ $incomplete_details[] = 'Busienss Section - Business Name Board Image not captured'; }
|
||||
|
||||
|
||||
if(isset($business_form['shop_eat_act_cert']))
|
||||
@ -7002,7 +7016,7 @@ class PD_Controller extends REST_Controller {
|
||||
{
|
||||
if(isset($business_form['practice_cert']))
|
||||
{
|
||||
if(strtoupper($business_form['practice_cert'])=='YES' && $business_form['practice_cert_pic'] == "")
|
||||
if(strtoupper($business_form['practice_cert'])=='YES' && (!isset($business_form['practice_cert_pic']) || $business_form['practice_cert_pic']== ""))
|
||||
{
|
||||
$certificate_count++;
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -6,6 +6,7 @@ class AssessedIncome
|
||||
public static function getSummaryTable($ai_summary_details,$ai_core_details){
|
||||
//echo "getSummaryTable";
|
||||
//print_r($ai_summary_details);
|
||||
|
||||
$rupee_symbol = "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>";
|
||||
$ai_table_header_row = '<tr> <th>Summary</th>';
|
||||
$sale_revenue_row = '<tr> <td>a. Sales / Revenue </td>';
|
||||
@ -15,10 +16,11 @@ class AssessedIncome
|
||||
$purchase_row = '<tr> <td>b. Cost of goods sold </td>';
|
||||
}
|
||||
$gross_profit_loss_row = '<tr> <td>c. Gross Profit / Loss(a-b)</td>';
|
||||
$business_expense_row = '<tr> <td>d. Business Expenses </td>';
|
||||
$net_profit_loss_row = '<tr> <td>e. Net Profit / Loss(c-d) </td>';
|
||||
$house_hold_expense_row = '<tr> <td>f. Household Expenses </td>';
|
||||
$disposable_income_row = '<tr> <td>g. Disposable Income</td>';
|
||||
$gross_profit_loss_per_row = '<tr> <td>d. Gross Profit / Loss %</td>';
|
||||
$business_expense_row = '<tr> <td>e. Business Expenses </td>';
|
||||
$net_profit_loss_row = '<tr> <td>f. Net Profit / Loss(c-d) </td>';
|
||||
$house_hold_expense_row = '<tr> <td>g. Household Expenses </td>';
|
||||
$disposable_income_row = '<tr> <td>h. Disposable Income</td>';
|
||||
$net_margin_row = '<tr> <td>h. Net Margin % </td>';
|
||||
$considered_sales_revenue_row = '<tr> <td>a) Considered Sales / Revenue ( Average) </td>';
|
||||
$considered_net_profit_row = '<tr> <td>b) Considered Net Profit ( Average)</td>';
|
||||
@ -42,6 +44,7 @@ class AssessedIncome
|
||||
|
||||
|
||||
$gross_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['grossprofit']).'</td>';
|
||||
$gross_profit_loss_per_row.= '<td class="customtd">'.(round((($ai_summary_details['sales_declared_by_customer']['grossprofit'] / $ai_summary_details['sales_declared_by_customer']['sales_revenue']) * 100),2)).' %</td>';
|
||||
$business_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['business_expenses']).'</td>';
|
||||
$net_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['netprofit']).'</td>';
|
||||
$house_hold_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_declared_by_customer']['house_hold_expenses']).'</td>';
|
||||
@ -66,6 +69,7 @@ class AssessedIncome
|
||||
$purchase_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['cost_of_goods_sold']).'</td>';
|
||||
}
|
||||
$gross_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['grossprofit']).'</td>';
|
||||
$gross_profit_loss_per_row.= '<td class="customtd">'.(round((($ai_summary_details['sales_calculated_by_itemwise']['grossprofit'] / $ai_summary_details['sales_calculated_by_itemwise']['sales_revenue']) * 100),2)).' %</td>';
|
||||
$business_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['business_expenses']).'</td>';
|
||||
$net_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['netprofit']).'</td>';
|
||||
$house_hold_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_itemwise']['house_hold_expenses']).'</td>';
|
||||
@ -90,6 +94,7 @@ class AssessedIncome
|
||||
$purchase_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['cost_of_goods_sold']).'</td>';
|
||||
}
|
||||
$gross_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['grossprofit']).'</td>';
|
||||
$gross_profit_loss_per_row.= '<td class="customtd">'.(round((($ai_summary_details['sales_calculated_by_monthwise']['grossprofit'] / $ai_summary_details['sales_calculated_by_monthwise']['sales_revenue']) * 100),2)).' %</td>';
|
||||
$business_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['business_expenses']).'</td>';
|
||||
$net_profit_loss_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['netprofit']).'</td>';
|
||||
$house_hold_expense_row .= '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_summary_details['sales_calculated_by_monthwise']['house_hold_expenses']).'</td>';
|
||||
@ -108,6 +113,7 @@ class AssessedIncome
|
||||
$sale_revenue_row .= '</tr>';
|
||||
$purchase_row .= '</tr>';
|
||||
$gross_profit_loss_row .= '</tr>';
|
||||
$gross_profit_loss_per_row .= '</tr>';
|
||||
$business_expense_row .= '</tr>';
|
||||
$net_profit_loss_row .= '</tr>';
|
||||
$house_hold_expense_row .= '</tr>';
|
||||
@ -131,7 +137,7 @@ class AssessedIncome
|
||||
// echo $considered_net_margint_row;
|
||||
if($house_hold_expense_count != 0){ $house_hold_expense_row = '';$disposable_income_row = '';
|
||||
$net_margin_row = substr_replace($net_margin_row,'f.',strpos($net_margin_row, 'h.'),2);}
|
||||
return array('ai_table_header_row' => $ai_table_header_row,'sale_revenue_row' => $sale_revenue_row,'purchase_row' => $purchase_row,'gross_profit_loss_row' => $gross_profit_loss_row,'business_expense_row' => $business_expense_row,'net_profit_loss_row' => $net_profit_loss_row,'house_hold_expense_row' => $house_hold_expense_row,'disposable_income_row'=>$disposable_income_row,'net_margin_row' => $net_margin_row,'considered_sales_revenue_row' => $considered_sales_revenue_row,'considered_net_profit_row' => $considered_net_profit_row,'considered_net_margint_row' =>$considered_net_margint_row);
|
||||
return array('ai_table_header_row' => $ai_table_header_row,'sale_revenue_row' => $sale_revenue_row,'purchase_row' => $purchase_row,'gross_profit_loss_row' => $gross_profit_loss_row,'business_expense_row' => $business_expense_row,'gross_profit_loss_per_row' => $gross_profit_loss_per_row,'net_profit_loss_row' => $net_profit_loss_row,'house_hold_expense_row' => $house_hold_expense_row,'disposable_income_row'=>$disposable_income_row,'net_margin_row' => $net_margin_row,'considered_sales_revenue_row' => $considered_sales_revenue_row,'considered_net_profit_row' => $considered_net_profit_row,'considered_net_margint_row' =>$considered_net_margint_row);
|
||||
|
||||
|
||||
|
||||
|
||||
@ -405,7 +405,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
</head>
|
||||
<body style="font-size:12px;margin:15px 30px">
|
||||
<body style="font-family:Merriweather;font-size:12px;margin:15px 30px">
|
||||
|
||||
|
||||
<footer>
|
||||
@ -437,13 +437,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<table>
|
||||
<tbody>
|
||||
<?php
|
||||
echo "<tr><td>PD Initiated Date </td> <td> </td> <td> ".$pd_master_details[0]['createdon']."</td></tr>";
|
||||
echo "<tr><td>PD Visit Date </td> <td> </td> <td> ".$pd_master_details[0]['pd_visit_date']."</td></tr>";
|
||||
echo "<tr><td>PD Report Date </td> <td> </td> <td>".$pd_master_details[0]['pd_report_generated_date']."</td></tr>";
|
||||
echo "<tr><td>PD Initiated by </td> <td> </td> <td>".$pd_master_details[0]['branch_name']." Branch</td></tr>";
|
||||
echo "<tr><td>Loan Application ID </td> <td> </td> <td> ".$pd_master_details[0]['lender_applicant_id']."</td></tr>";
|
||||
echo "<tr><td>Product </td> <td> </td> <td>".$pd_master_details[0]['product_name']."</td></tr>";
|
||||
echo "<tr><td>Customer Segment </td> <td> </td> <td>".(explode('-',$pd_master_details[0]['customer_segment_name'])[0])."<td></tr>";
|
||||
echo "<tr><td>PD Initiated Date </td> <td> ".$pd_master_details[0]['createdon']."</td></tr>";
|
||||
echo "<tr><td>PD Visit Date </td> <td> ".$pd_master_details[0]['pd_visit_date']."</td></tr>";
|
||||
echo "<tr><td>PD Report Date </td> <td>".$pd_master_details[0]['pd_report_generated_date']."</td></tr>";
|
||||
echo "<tr><td>PD Initiated by </td> <td>".$pd_master_details[0]['branch_name']." Branch</td></tr>";
|
||||
echo "<tr><td>Loan Application ID </td> <td> ".$pd_master_details[0]['lender_applicant_id']."</td></tr>";
|
||||
echo "<tr><td>Product </td> <td>".$pd_master_details[0]['product_name']."</td></tr>";
|
||||
echo "<tr><td>Customer Segment </td> <td>".(explode('-',$pd_master_details[0]['customer_segment_name'])[0])."</td></tr>";
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -571,12 +571,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
//}
|
||||
if($person['photo'])
|
||||
{
|
||||
echo '<img src='.$person['photo'].' width="300px" height="200px" alt=""/>';
|
||||
echo '<img src="'.$person['photo'].'" width="300" height="200" alt=""/>';
|
||||
}
|
||||
echo ' ';
|
||||
if($person['id_proof'])
|
||||
{
|
||||
echo '<img src='.$person['id_proof'].' width="300px" height="200px" alt=""/>';
|
||||
echo '<img src="'.$person['id_proof'].'" width="300" height="200" alt=""/>';
|
||||
}
|
||||
|
||||
//echo count($person_met_data) != ($pk+1)? '<hr>':'';
|
||||
@ -902,8 +902,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if($address_image_value['is_show_report'] == 1)
|
||||
{
|
||||
$pd_location_approach_img_url = isset($address_image_value['doc_url']) ? $address_image_value['doc_url']: 'https://www.bigblue.co.za/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/n/o/not-captured.jpg';
|
||||
$pd_location_approach_img_location = $address_image_value['location'];
|
||||
$pd_location_approach_img_date = date('Y/m/d h:s:i A',$address_image_value['createdon']);
|
||||
//$pd_location_approach_img_location = $address_image_value['location'];
|
||||
//$pd_location_approach_img_date = date('Y/m/d h:s:i A',$address_image_value['createdon']);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -961,8 +961,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
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:100%;height:300px;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>
|
||||
|
||||
<?php if($pd_location_approach_img_url != "" || $name_board_seen_img_url != "") {?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr> <th>PD Location Approach</th> <th>Name Board of Business</th> </tr>
|
||||
@ -975,6 +976,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</tr>
|
||||
<tr> <td><?php echo $pd_location_approach_img_location .'<br>'.$pd_location_approach_img_date; ?></td> <td> </td> </tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<div id="page_break"></div>
|
||||
<br><p><b>Location Summary</b></p>
|
||||
<?php
|
||||
@ -1983,8 +1985,17 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<tr>
|
||||
<td colspan=3>Net Profit / (Net Loss) (Rs) >>>></td> <td class="customtd" <?php echo $csRow['estimate_profit_or_loss'] ? "style='color:green'" : "style='color:green'";?>><?php echo MYUTIL::customIndianNumberFormat($csRow['net_profit_loss_sales_final_rs']) ?></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
|
||||
<?php }else{ ?>
|
||||
<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($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>
|
||||
@ -1993,7 +2004,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td>Net Profit or (Net Loss) to Sales (Rs) </td> <td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($csRow['net_profit_loss_sales_per_from']) ?></td><td class="customtd"><?php echo MYUTIL:: customIndianNumberFormat($csRow['net_profit_loss_sales_per_to']) ?></td><td class="customtd" <?php echo $csRow['estimate_profit_or_loss']? "style='color:green'" : "style='color:green'";?> ><?php echo MYUTIL:: customIndianNumberFormat($csRow['net_profit_loss_sales_final_per']) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3>Net Profit / (Net Loss)% >>>></td> <td class="customtd" <?php echo $csRow['estimate_profit_or_loss'] ? "style='color:green'" : "style='color:green'";?>><?php echo MYUTIL:: customIndianNumberFormat($csRow['net_profit_loss_sales_final_rs']).'%' ?></td>
|
||||
<td colspan=3> Net Profit / (Net Loss)% >>>> </td> <td class="customtd" <?php echo $csRow['estimate_profit_or_loss'] ? "style='color:green'" : "style='color:green'";?> ><?php echo MYUTIL:: customIndianNumberFormat($csRow['net_profit_loss_sales_final_rs']).'%' ?></td>
|
||||
</tr>
|
||||
|
||||
<?php } ?>
|
||||
@ -2023,7 +2034,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<tbody>
|
||||
<?php foreach($iterateFinance['working_capital_facilites'] as $fk => $facility){
|
||||
|
||||
echo '<tr> <td class="customtd">'.(++$fk) .'</td><td td class="customtd">'.$facility['name'].'</td> <td td class="customtd">'.$facility['details'].'</td></tr>';
|
||||
echo '<tr> <td class="customtd">'.(++$fk) .'</td><td class="customtd">'.$facility['name'].'</td> <td class="customtd">'.$facility['details'].'</td></tr>';
|
||||
}?>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -2627,7 +2638,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$is_raw_materials_sufficient_enough_remarks = null;
|
||||
$bindStockResult["company_name"]=MYUTIL::findCompanyName($all_company_details,$stockRow['company_id'],1);
|
||||
// this is for stock manufacturing details
|
||||
if(isset($stockRow['manufacturing_details']) && is_array($stockRow['manufacturing_details']) && count($stockRow['manufacturing_details'] && (count($stockRow['manufacturing_details'][0]['manufacturing_raw_materials']) > 0 || count($stockRow['manufacturing_details'][0]['manufacturing_finished_goods']) > 0))){
|
||||
if(isset($stockRow['manufacturing_details']) && is_array($stockRow['manufacturing_details']) && count($stockRow['manufacturing_details']) && (is_array($stockRow['manufacturing_details'][0]['manufacturing_raw_materials']) && count($stockRow['manufacturing_details'][0]['manufacturing_raw_materials'])) > 0 || (is_array($stockRow['manufacturing_details'][0]['manufacturing_finished_goods']) && count($stockRow['manufacturing_details'][0]['manufacturing_finished_goods']) > 0)) {
|
||||
|
||||
$is_raw_materials_sufficient_enough = $stockRow['manufacturing_details'][0]['is_sufficiant_raw'];
|
||||
$is_raw_materials_sufficient_enough_remarks = $stockRow['manufacturing_details'][0]['rawmaterial_remarks'];
|
||||
@ -2856,25 +2867,217 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
// echo "######################################";
|
||||
// print_r($ai_core_details_processed);
|
||||
//
|
||||
$order_dipaly_array = array('A','B','C','D','E','F','G');
|
||||
$ai_summary_details = ($assessed_income_details[ ($business_count+1) ]['summary_details']);
|
||||
$ai_summary_details_processed = ASSESSEDINCOME::getSummaryTable($ai_summary_details,$ai_core_details);
|
||||
|
||||
|
||||
echo "<h2>Assessed Income - ".MYUTIL::findCompanyName($all_company_details,($business_count+1),1)."</h2>";
|
||||
|
||||
if(isset($ai_core_details) && count($ai_summary_details_processed))
|
||||
{
|
||||
echo '<p contenteditable="true"> '.$order_dipaly_array[0].') Financial Snapshot</p>';
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<thead>';
|
||||
echo $ai_summary_details_processed['ai_table_header_row'];
|
||||
echo '</thead>';
|
||||
echo '<tbody>';
|
||||
echo $ai_summary_details_processed['sale_revenue_row'];
|
||||
echo $ai_summary_details_processed['purchase_row'];
|
||||
echo $ai_summary_details_processed['gross_profit_loss_row'];
|
||||
echo $ai_summary_details_processed['gross_profit_loss_per_row'];
|
||||
echo $ai_summary_details_processed['business_expense_row'];
|
||||
echo $ai_summary_details_processed['net_profit_loss_row'];
|
||||
echo $ai_summary_details_processed['house_hold_expense_row'];
|
||||
echo $ai_summary_details_processed['disposable_income_row'];
|
||||
echo $ai_summary_details_processed['net_margin_row'];
|
||||
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
|
||||
echo '<br>';
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<thead>';
|
||||
echo '<tr> <th>Particulars</th> <th>Details</th> </tr>';
|
||||
echo '</thead>';
|
||||
echo '<tbody>';
|
||||
echo $ai_summary_details_processed['considered_sales_revenue_row'];
|
||||
echo $ai_summary_details_processed['considered_net_profit_row'];
|
||||
echo $ai_summary_details_processed['considered_net_margint_row'];
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
array_shift($order_dipaly_array);
|
||||
}
|
||||
|
||||
|
||||
echo '<p style="text-align:justify;">';
|
||||
|
||||
|
||||
if(isset($ai_core_details) && count($ai_core_details['sales_items_by_monthwise']))
|
||||
{
|
||||
echo "<br>";
|
||||
echo '<p contenteditable="true">'.$order_dipaly_array[0].') Kuchha Sales Book/Bills : </p>';
|
||||
foreach($ai_core_details_processed['sales_month_wise_to_display'] as $sale_month_wise)
|
||||
{
|
||||
// if($sale_month_wise['sales_type'] == 1)
|
||||
// {
|
||||
// echo '<div id="billwise">';
|
||||
echo 'Item name : <b>' . $sale_month_wise['sales_item'].'</b><br>';
|
||||
if($sale_month_wise['sales_type'] == 1)
|
||||
{
|
||||
echo '<b>'.$sale_month_wise['month_count'].'</b> month sales value : <b>'.$rupee_symbol.''.MYUTIL::customIndianNumberFormat($sale_month_wise['total_months_value']).'</b> Annual Sales value:<b>'.$rupee_symbol.'' .MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] * (12 / $sale_month_wise['month_count']) )).'</b>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Annual Sales value:<b>'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] )).'</b>';
|
||||
}
|
||||
}
|
||||
array_shift($order_dipaly_array);
|
||||
echo '<br><br>Detail Available on Annexure A';
|
||||
}
|
||||
|
||||
|
||||
// if(isset($ai_core_details) && count($ai_core_details['sales_items_by_monthwise']))
|
||||
// {
|
||||
// echo "<br>";
|
||||
// echo '<p contenteditable="true">'.$order_dipaly_array[0].') Kuchha Sales Book/Bills : </p>';
|
||||
// foreach($ai_core_details_processed['sales_month_wise_to_display'] as $sale_month_wise)
|
||||
// {
|
||||
// // if($sale_month_wise['sales_type'] == 1)
|
||||
// // {
|
||||
// echo '<div id="billwise">';
|
||||
// echo 'Item name : <b>' . $sale_month_wise['sales_item'].'</b><br>';
|
||||
// if($sale_month_wise['sales_type'] == 1)
|
||||
// {
|
||||
// echo '<b>'.$sale_month_wise['month_count'].'</b> month sales value : <b>'.$rupee_symbol.''.MYUTIL::customIndianNumberFormat($sale_month_wise['total_months_value']).'</b> Annual Sales value:<b>'.$rupee_symbol.'' .MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] * (12 / $sale_month_wise['month_count']) )).'</b>';
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// echo 'Annual Sales value:<b>'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] )).'</b>';
|
||||
// }
|
||||
// echo '<hr>';
|
||||
// $row_count = ceil(count($sale_month_wise['months']) / 5);
|
||||
// //print_r(($sale_month_wise['months']));
|
||||
// // echo $row_count;
|
||||
// //die();
|
||||
// echo '<table>';
|
||||
|
||||
// for($i = 0; $i <= $row_count; $i++)
|
||||
// {
|
||||
// $from = $i== 0 ? $i : ($i + 3);
|
||||
// $to = ($from + 3);
|
||||
// echo '<tr>';
|
||||
// for($j = $from ; $j <= $to ;$j++)
|
||||
// {
|
||||
// //$sale_month_wise['months'] as $sale_month_data
|
||||
// //echo '<span style="display:inline;width:auto;height:auto;padding: 5px;">';
|
||||
// if(isset($sale_month_wise['months'][$j]))
|
||||
// {
|
||||
// echo '<td>';
|
||||
// echo '<table class="billwise_table">';
|
||||
// echo '<thead>';
|
||||
// if($sale_month_wise['sales_type'] == 1)
|
||||
// {
|
||||
// echo '<tr> <th colspan="2">'.$sale_month_wise['months'][$j]['month_to_dispaly'].'</th> </tr>';
|
||||
// }
|
||||
// if($sale_month_wise['sales_type'] == 1)
|
||||
// {
|
||||
// echo '<tr> <th>Date</th> <th>Value</th></tr>';
|
||||
// }else if($sale_month_wise['months'][$j]['sales_type'] == 2)
|
||||
// {
|
||||
// echo '<tr> <th>Frequncy</th> <th>Value</th></tr>';
|
||||
// }
|
||||
// echo '</thead>';
|
||||
|
||||
// echo '<tbody>';
|
||||
|
||||
// foreach($sale_month_wise['months'][$j]['month_data'] as $m_key => $month)
|
||||
// {
|
||||
// if($sale_month_wise['sales_type'] == 1)
|
||||
// {
|
||||
// echo '<tr> <td>'.$month['date'] .'</td> <td>'.$month['value'] .'</td> </tr>';
|
||||
// }
|
||||
// if($m_key == 20)break;
|
||||
// else if($sale_month_wise['sales_type'] == 2)
|
||||
// {
|
||||
// echo '<tr> <td>'.$month['frequency_name'] .'</td> <td>'.$month['frequency_value'] .'</td> </tr>';
|
||||
// }
|
||||
// }
|
||||
// echo '</tbody>';
|
||||
|
||||
// echo '</table>';
|
||||
// echo '</td>';
|
||||
// }
|
||||
// }
|
||||
// echo '</tr>';
|
||||
// }
|
||||
// echo '</table>';
|
||||
// echo '</div>';
|
||||
|
||||
// //}
|
||||
// }
|
||||
|
||||
// array_shift($order_dipaly_array);
|
||||
// }
|
||||
|
||||
|
||||
|
||||
if(isset($ai_core_details) && count($ai_core_details['sales_calculated_by_itemwise']))
|
||||
{
|
||||
echo '<p contenteditable="true">'.$order_dipaly_array[0].') Sales Itemwise : </p>';
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<thead>';
|
||||
echo $ai_core_details_processed['sales_calculated_by_itemwise_header'];
|
||||
echo '</thead>';
|
||||
echo '<tbody>';
|
||||
foreach($ai_core_details_processed['sales_item_wise_to_diaplay'] as $sid)
|
||||
{
|
||||
echo '<tr>';
|
||||
echo '<td>'.$sid['sale_item'].'</td><td class="customtd">'.$sid['sales_qty'].'</td><td class="customtd">'.$sid['uom'].'</td><td>'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($sid['rate_per_unit']).'</td><td class="customtd">'.$sid['frequency'].'</td><td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($sid['annual_sale_value']).'</td>';
|
||||
if(isset($sid['margin_per'])){echo '<td class="customtd">'.$sid['margin_per'].'</td>'; }
|
||||
if(isset($sid['margin_per_uom'])){echo '<td class="customtd">'.$sid['margin_per_uom'].'</td>'; }
|
||||
if(isset($sid['margin_final_value'])){echo '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($sid['margin_final_value']).'</td>'; }
|
||||
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
array_shift($order_dipaly_array);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(isset($ai_core_details) && count($ai_core_details['sales_declared_by_customer']))
|
||||
{
|
||||
|
||||
echo '<p contenteditable="true">'.$order_dipaly_array[0].') Sales Declared By Customer</p>';
|
||||
|
||||
if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 1)
|
||||
{
|
||||
echo '<br><p style="text-align:justify;">As per person met, the following Purchase details were shared:</p><br>';
|
||||
echo '<p style="text-align:justify;">As per person met, the following Purchase details were shared:</p>';
|
||||
}
|
||||
else if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 2)
|
||||
{
|
||||
echo '<br><p>As per person met, Purchase details were not shared, income calculated by Net magin percentage.</p><br>';
|
||||
echo '<p>As per person met, Purchase details were not shared, income calculated by Net magin percentage.</p>';
|
||||
}
|
||||
|
||||
|
||||
$str = 'As per person met, '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_core_details['sales_declared_by_customer'][0]['sales_declared_by_customer']).' ( '.MYUTIL::numtowords($ai_core_details['sales_declared_by_customer'][0]['sales_declared_by_customer']).' ) declared as annual sale value.';
|
||||
if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 2)
|
||||
{
|
||||
$str .= '<br>and '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_core_details['sales_declared_by_customer'][0]['margin_value']).' ( '.MYUTIL::numtowords( $ai_core_details['sales_declared_by_customer'][0]['margin_value']).' )'.'( '.$ai_core_details['sales_declared_by_customer'][0]['margin_per'].'% sales declared ) as net margin amount.';
|
||||
}
|
||||
|
||||
echo $str;
|
||||
echo '</p><br>';
|
||||
array_shift($order_dipaly_array);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 1 && $ai_core_details['gross_profit_calculation_type'][0]['purchase_type'] == 1)
|
||||
{
|
||||
echo '<p>Itemwise Purchase Details :</p>';
|
||||
echo '<p>'.$order_dipaly_array[0].') Itemwise Purchase Details :</p>';
|
||||
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<thead>';
|
||||
@ -2889,11 +3092,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
echo '</tbody>';
|
||||
|
||||
echo '</table>';
|
||||
array_shift($order_dipaly_array);
|
||||
|
||||
}
|
||||
else if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 1 &&$ai_core_details['gross_profit_calculation_type'][0]['purchase_type'] == 2)
|
||||
{
|
||||
echo '<p>Billwise Purchase Details :</p>';
|
||||
echo '<p>'.$order_dipaly_array[0].') Billwise Purchase Details :</p>';
|
||||
foreach($ai_core_details_processed['purchase_to_display'] as $billwise)
|
||||
{
|
||||
echo '<div id="billwise">';
|
||||
@ -2923,125 +3127,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
array_shift($order_dipaly_array);
|
||||
}
|
||||
|
||||
}
|
||||
echo '<p style="text-align:justify;">';
|
||||
if(isset($ai_core_details) && count($ai_core_details['sales_declared_by_customer']))
|
||||
{
|
||||
$str = 'As per person met, '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_core_details['sales_declared_by_customer'][0]['sales_declared_by_customer']).' ( '.MYUTIL::numtowords($ai_core_details['sales_declared_by_customer'][0]['sales_declared_by_customer']).' ) declared as annual sale value.';
|
||||
if($ai_core_details['gross_profit_calculation_type'][0]['mode'] == 2)
|
||||
{
|
||||
$str .= '<br>Also '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($ai_core_details['sales_declared_by_customer'][0]['margin_value']).' ( '.MYUTIL::numtowords( $ai_core_details['sales_declared_by_customer'][0]['margin_value']).' )'.'( '.$ai_core_details['sales_declared_by_customer'][0]['margin_per'].'% sales declared ) as net margin amount.';
|
||||
}
|
||||
|
||||
echo $str;
|
||||
echo '</p><br>';
|
||||
}
|
||||
//
|
||||
if(isset($ai_core_details) && count($ai_core_details['sales_calculated_by_itemwise']))
|
||||
{
|
||||
echo '<p contenteditable="true">Sales Itemwise : </p>';
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<thead>';
|
||||
echo $ai_core_details_processed['sales_calculated_by_itemwise_header'];
|
||||
echo '</thead>';
|
||||
echo '<tbody>';
|
||||
foreach($ai_core_details_processed['sales_item_wise_to_diaplay'] as $sid)
|
||||
{
|
||||
echo '<tr>';
|
||||
echo '<td>'.$sid['sale_item'].'</td><td class="customtd">'.$sid['sales_qty'].'</td><td class="customtd">'.$sid['uom'].'</td><td>'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($sid['rate_per_unit']).'</td><td class="customtd">'.$sid['frequency'].'</td><td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($sid['annual_sale_value']).'</td>';
|
||||
if(isset($sid['margin_per'])){echo '<td class="customtd">'.$sid['margin_per'].'</td>'; }
|
||||
if(isset($sid['margin_per_uom'])){echo '<td class="customtd">'.$sid['margin_per_uom'].'</td>'; }
|
||||
if(isset($sid['margin_final_value'])){echo '<td class="customtd">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($sid['margin_final_value']).'</td>'; }
|
||||
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
}
|
||||
|
||||
|
||||
if(isset($ai_core_details) && count($ai_core_details['sales_items_by_monthwise']))
|
||||
{
|
||||
echo "<br>";
|
||||
echo '<p contenteditable="true">Kuchha Sales Book/Bills : </p>';
|
||||
foreach($ai_core_details_processed['sales_month_wise_to_display'] as $sale_month_wise)
|
||||
{
|
||||
// if($sale_month_wise['sales_type'] == 1)
|
||||
// {
|
||||
echo '<div id="billwise">';
|
||||
echo 'Item name : <b>' . $sale_month_wise['sales_item'].'</b><br>';
|
||||
if($sale_month_wise['sales_type'] == 1)
|
||||
{
|
||||
echo '<b>'.$sale_month_wise['month_count'].'</b> month purchase value : <b>'.$rupee_symbol.''.MYUTIL::customIndianNumberFormat($sale_month_wise['total_months_value']).'</b> Annual Purchase value:<b>'.$rupee_symbol.'' .MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] * (12 / $sale_month_wise['month_count']) )).'</b>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Annual Purchase value:<b>'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] )).'</b>';
|
||||
}
|
||||
echo '<hr>';
|
||||
$row_count = ceil(count($sale_month_wise['months']) / 5);
|
||||
echo '<table>';
|
||||
|
||||
for($i = 1; $i <= $row_count; $i++)
|
||||
{
|
||||
$from = $i==1 ? $i : ($i + 4);
|
||||
$to = ($from + 4);
|
||||
echo '<tr>';
|
||||
for($j = $from ; $j <= $to ;$j++)
|
||||
{
|
||||
//$sale_month_wise['months'] as $sale_month_data
|
||||
//echo '<span style="display:inline;width:auto;height:auto;padding: 5px;">';
|
||||
if(isset($sale_month_wise['months'][$j]))
|
||||
{
|
||||
echo '<td>';
|
||||
echo '<table class="billwise_table">';
|
||||
echo '<thead>';
|
||||
if($sale_month_wise['sales_type'] == 1)
|
||||
{
|
||||
echo '<tr> <th colspan="2">'.$sale_month_wise['months'][$j]['month_to_dispaly'].'</th> </tr>';
|
||||
}
|
||||
if($sale_month_wise['sales_type'] == 1)
|
||||
{
|
||||
echo '<tr> <th>Date</th> <th>Value</th></tr>';
|
||||
}else if($sale_month_wise['months'][$j]['sales_type'] == 2)
|
||||
{
|
||||
echo '<tr> <th>Frequncy</th> <th>Value</th></tr>';
|
||||
}
|
||||
echo '</thead>';
|
||||
|
||||
echo '<tbody>';
|
||||
foreach($sale_month_wise['months'][$j]['month_data'] as $month)
|
||||
{
|
||||
if($sale_month_wise['sales_type'] == 1)
|
||||
{
|
||||
echo '<tr> <td>'.$month['date'] .'</td> <td>'.$month['value'] .'</td> </tr>';
|
||||
}
|
||||
else if($sale_month_wise['sales_type'] == 2)
|
||||
{
|
||||
echo '<tr> <td>'.$month['frequency_name'] .'</td> <td>'.$month['frequency_value'] .'</td> </tr>';
|
||||
}
|
||||
}
|
||||
echo '</tbody>';
|
||||
|
||||
echo '</table>';
|
||||
echo '</td>';
|
||||
}
|
||||
}
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
echo '</div>';
|
||||
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
if(isset($ai_core_details) && count($ai_core_details['business_expenses']))
|
||||
{
|
||||
echo '<p contenteditable="true">Business Expenses Details :</p>';
|
||||
echo '<p contenteditable="true">'.$order_dipaly_array[0].') Business Expenses Details :</p>';
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<thead>';
|
||||
echo '<tr> <th>Business Expense </th> <th>Amount</th> <th>Frequency </th> <th>Annual Expenses</th></tr>';
|
||||
@ -3053,11 +3147,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
array_shift($order_dipaly_array);
|
||||
}
|
||||
|
||||
if(isset($ai_core_details) && count($ai_core_details['house_hold_expenses']))
|
||||
{
|
||||
echo '<p contenteditable="true">Household Expenses Details :</p>';
|
||||
echo '<p contenteditable="true">'.$order_dipaly_array[0].') Household Expenses Details :</p>';
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<thead>';
|
||||
echo '<tr> <th>Expense Particulars </th> <th>Amount (Rs) </th> <th>Frequency </th> <th>Annual Expenses(Rs)</th></tr>';
|
||||
@ -3069,41 +3164,42 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
array_shift($order_dipaly_array);
|
||||
}
|
||||
|
||||
|
||||
if(isset($ai_core_details) && count($ai_summary_details_processed))
|
||||
{
|
||||
echo '<p contenteditable="true">The Summary of Income :</p>';
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<thead>';
|
||||
echo $ai_summary_details_processed['ai_table_header_row'];
|
||||
echo '</thead>';
|
||||
echo '<tbody>';
|
||||
echo $ai_summary_details_processed['sale_revenue_row'];
|
||||
echo $ai_summary_details_processed['purchase_row'];
|
||||
echo $ai_summary_details_processed['gross_profit_loss_row'];
|
||||
echo $ai_summary_details_processed['business_expense_row'];
|
||||
echo $ai_summary_details_processed['net_profit_loss_row'];
|
||||
echo $ai_summary_details_processed['house_hold_expense_row'];
|
||||
echo $ai_summary_details_processed['disposable_income_row'];
|
||||
echo $ai_summary_details_processed['net_margin_row'];
|
||||
// if(isset($ai_core_details) && count($ai_summary_details_processed))
|
||||
// {
|
||||
// echo '<p contenteditable="true">The Summary of Income :</p>';
|
||||
// echo '<table class="scorecard_table">';
|
||||
// echo '<thead>';
|
||||
// echo $ai_summary_details_processed['ai_table_header_row'];
|
||||
// echo '</thead>';
|
||||
// echo '<tbody>';
|
||||
// echo $ai_summary_details_processed['sale_revenue_row'];
|
||||
// echo $ai_summary_details_processed['purchase_row'];
|
||||
// echo $ai_summary_details_processed['gross_profit_loss_row'];
|
||||
// echo $ai_summary_details_processed['business_expense_row'];
|
||||
// echo $ai_summary_details_processed['net_profit_loss_row'];
|
||||
// echo $ai_summary_details_processed['house_hold_expense_row'];
|
||||
// echo $ai_summary_details_processed['disposable_income_row'];
|
||||
// echo $ai_summary_details_processed['net_margin_row'];
|
||||
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
// echo '</tbody>';
|
||||
// echo '</table>';
|
||||
|
||||
echo '<br>';
|
||||
echo '<table class="scorecard_table">';
|
||||
echo '<thead>';
|
||||
echo '<tr> <th>Particulars</th> <th>Details</th> </tr>';
|
||||
echo '</thead>';
|
||||
echo '<tbody>';
|
||||
echo $ai_summary_details_processed['considered_sales_revenue_row'];
|
||||
echo $ai_summary_details_processed['considered_net_profit_row'];
|
||||
echo $ai_summary_details_processed['considered_net_margint_row'];
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
}
|
||||
// echo '<br>';
|
||||
// echo '<table class="scorecard_table">';
|
||||
// echo '<thead>';
|
||||
// echo '<tr> <th>Particulars</th> <th>Details</th> </tr>';
|
||||
// echo '</thead>';
|
||||
// echo '<tbody>';
|
||||
// echo $ai_summary_details_processed['considered_sales_revenue_row'];
|
||||
// echo $ai_summary_details_processed['considered_net_profit_row'];
|
||||
// echo $ai_summary_details_processed['considered_net_margint_row'];
|
||||
// echo '</tbody>';
|
||||
// echo '</table>';
|
||||
// }
|
||||
echo "<div class='page_break'></div>";
|
||||
//
|
||||
?>
|
||||
@ -3132,7 +3228,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="page_break"></div>
|
||||
<h3 contenteditable="">Personal Assets</h3>
|
||||
<?php
|
||||
//print_r($otherAssetResult);
|
||||
@ -3641,19 +3737,113 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
<div id="page_break"></div>
|
||||
|
||||
<?php if($total_no_of_business > 0) {
|
||||
for($business_count = 0;$business_count < $total_no_of_business; $business_count++)
|
||||
{
|
||||
if(is_array($assessed_income_details) && count($assessed_income_details) && isset($assessed_income_details[ ($business_count+1) ] ))
|
||||
{
|
||||
echo '<p> Annexure A</p>';
|
||||
if(isset($ai_core_details) && count($ai_core_details['sales_items_by_monthwise']))
|
||||
{
|
||||
echo "<br>";
|
||||
echo '<p contenteditable="true">Kuchha Sales Book/Bills Details: </p>';
|
||||
foreach($ai_core_details_processed['sales_month_wise_to_display'] as $sale_month_wise)
|
||||
{
|
||||
// if($sale_month_wise['sales_type'] == 1)
|
||||
// {
|
||||
echo '<div id="billwise">';
|
||||
echo 'Item name : <b>' . $sale_month_wise['sales_item'].'</b><br>';
|
||||
if($sale_month_wise['sales_type'] == 1)
|
||||
{
|
||||
echo '<b>'.$sale_month_wise['month_count'].'</b> month sales value : <b>'.$rupee_symbol.''.MYUTIL::customIndianNumberFormat($sale_month_wise['total_months_value']).'</b> Annual Sales value:<b>'.$rupee_symbol.'' .MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] * (12 / $sale_month_wise['month_count']) )).'</b>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Annual Sales value:<b>'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat(($sale_month_wise['total_months_value'] )).'</b>';
|
||||
}
|
||||
echo '<hr>';
|
||||
$row_count = ceil(count($sale_month_wise['months']) / 5);
|
||||
//print_r(($sale_month_wise['months']));
|
||||
// echo $row_count;
|
||||
//die();
|
||||
echo '<table>';
|
||||
|
||||
for($i = 0; $i <= $row_count; $i++)
|
||||
{
|
||||
$from = $i== 0 ? $i : ($i + 3);
|
||||
$to = ($from + 3);
|
||||
echo '<tr>';
|
||||
for($j = $from ; $j <= $to ;$j++)
|
||||
{
|
||||
//$sale_month_wise['months'] as $sale_month_data
|
||||
//echo '<span style="display:inline;width:auto;height:auto;padding: 5px;">';
|
||||
if(isset($sale_month_wise['months'][$j]))
|
||||
{
|
||||
echo '<td>';
|
||||
echo '<table class="billwise_table">';
|
||||
echo '<thead>';
|
||||
if($sale_month_wise['sales_type'] == 1)
|
||||
{
|
||||
echo '<tr> <th colspan="2">'.$sale_month_wise['months'][$j]['month_to_dispaly'].'</th> </tr>';
|
||||
}
|
||||
if($sale_month_wise['sales_type'] == 1)
|
||||
{
|
||||
echo '<tr> <th>Date</th> <th>Value</th></tr>';
|
||||
}else if($sale_month_wise['months'][$j]['sales_type'] == 2)
|
||||
{
|
||||
echo '<tr> <th>Frequncy</th> <th>Value</th></tr>';
|
||||
}
|
||||
echo '</thead>';
|
||||
|
||||
echo '<tbody>';
|
||||
|
||||
foreach($sale_month_wise['months'][$j]['month_data'] as $m_key => $month)
|
||||
{
|
||||
if($sale_month_wise['sales_type'] == 1)
|
||||
{
|
||||
echo '<tr> <td>'.$month['date'] .'</td> <td>'.$month['value'] .'</td> </tr>';
|
||||
}
|
||||
if($m_key == 20)break;
|
||||
else if($sale_month_wise['sales_type'] == 2)
|
||||
{
|
||||
echo '<tr> <td>'.$month['frequency_name'] .'</td> <td>'.$month['frequency_value'] .'</td> </tr>';
|
||||
}
|
||||
}
|
||||
echo '</tbody>';
|
||||
|
||||
echo '</table>';
|
||||
echo '</td>';
|
||||
}
|
||||
}
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
echo '</div>';
|
||||
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}// end of if AI available in current business count
|
||||
}//end of total no of business for loop
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- #################End Final Remarks Section#################-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="page_break"></div>
|
||||
<?php
|
||||
|
||||
$show_detailed_scorecard = 1;
|
||||
if($show_detailed_scorecard)
|
||||
{
|
||||
echo "<h3>Details Score Card Section</h3>" ;
|
||||
echo "<h3>Detailed Score Card Section</h3>" ;
|
||||
// *** General Section Questions Score Table
|
||||
echo '<table class="scorecard_table2">';
|
||||
echo "<tr> <th>General Questions L1(". $pd_score['general']['otp_done']['l1_weightage']."%) </th> <th>L2</th> <th>Answer</th> <th>Score</th> <th>Attributed Score</th> <th>Max Score</th></tr>";
|
||||
@ -3751,7 +3941,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
// *** Business Certificates Score Table
|
||||
echo '</table>';
|
||||
|
||||
|
||||
echo '<br><br>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user