SMC LATEST FEEDBACKS

This commit is contained in:
Velz2020 2020-12-30 18:10:16 +05:30
parent 04ae763a89
commit 94b20d2808
2 changed files with 26 additions and 22 deletions

View File

@ -22,11 +22,15 @@ class SMCPDSCORE
// LEVEL2 WEIGHTAGES - Questions Weightages
/*-------- GENERAL --------------*/
$approcah_to_pd_location_L2 = 25;
$comment_locality_L2 = 15;
$customer_behaviour_L2 = 25;
$neighbourhood_status_L2 = 20;
$name_board_seen_L2 = 15;
// $approcah_to_pd_location_L2 = 25;
$approcah_to_pd_location_L2 = 31.25;
// $comment_locality_L2 = 15;
$comment_locality_L2 = 18.75;
// $customer_behaviour_L2 = 25;
$customer_behaviour_L2 = 31.25;
// $neighbourhood_status_L2 = 20;
// $name_board_seen_L2 = 15;
$name_board_seen_L2 = 18.75;
/*-------- BUSNIESS --------------*/
$no_of_years_business_run_L2 = 20;
@ -72,11 +76,11 @@ class SMCPDSCORE
$general_distribute_level_weightage = 0;
//General Section L2 Weightage Distribution section
if(!strcmp($score_questions['neighbourhood_status']['answer'],'Could not verify'))
{
//echo "Yes could not";
$general_distribute_level_weightage += $neighbourhood_status_L2;
}
// if(!strcmp($score_questions['neighbourhood_status']['answer'],'Could not verify'))
// {
// //echo "Yes could not";
// $general_distribute_level_weightage += $neighbourhood_status_L2;
// }
//End of General Section L2 Weightage Distribution section
@ -84,20 +88,20 @@ class SMCPDSCORE
//######1.5 neibourhood_check_as_per_pd_officer
if(!strcmp($score_questions['neighbourhood_status']['answer'],'Could not verify'))
{
$final_score_questions['general']['neighbourhood_status'] = array('l1_weightage' => $l1_general,'l2_weightage' => 0,'distributed_weightage' => $general_distribute_level_weightage,'answer' => $score_questions['neighbourhood_status']['answer'],'attributed_score' => 0.00, 'max_score' => 0.00,'score_band'=>$neighbourhood_status[ $score_questions['neighbourhood_status']['answer'] != "" || $score_questions['neighbourhood_status']['answer'] != null ?$score_questions['neighbourhood_status']['answer']: "Negative" ],'max_score_band' => 0);
}
else
{
$neighbourhood_status_L2 = $general_distribute_level_weightage ? ($neighbourhood_status_L2 + ($neighbourhood_status_L2 / (100 - $general_distribute_level_weightage )) * $general_distribute_level_weightage) : $neighbourhood_status_L2;
// if(!strcmp($score_questions['neighbourhood_status']['answer'],'Could not verify'))
// {
// $final_score_questions['general']['neighbourhood_status'] = array('l1_weightage' => $l1_general,'l2_weightage' => 0,'distributed_weightage' => $general_distribute_level_weightage,'answer' => $score_questions['neighbourhood_status']['answer'],'attributed_score' => 0.00, 'max_score' => 0.00,'score_band'=>$neighbourhood_status[ $score_questions['neighbourhood_status']['answer'] != "" || $score_questions['neighbourhood_status']['answer'] != null ?$score_questions['neighbourhood_status']['answer']: "Negative" ],'max_score_band' => 0);
// }
// else
// {
// $neighbourhood_status_L2 = $general_distribute_level_weightage ? ($neighbourhood_status_L2 + ($neighbourhood_status_L2 / (100 - $general_distribute_level_weightage )) * $general_distribute_level_weightage) : $neighbourhood_status_L2;
$neibourhood_check_as_per_pd_officer_actual_score = ($l1_general/100) * ($neighbourhood_status_L2/100) * $neighbourhood_status[$score_questions['neighbourhood_status']['answer'] != "" || $score_questions['neighbourhood_status']['answer'] != null ? $score_questions['neighbourhood_status']['answer'] : "Negative" ];
// $neibourhood_check_as_per_pd_officer_actual_score = ($l1_general/100) * ($neighbourhood_status_L2/100) * $neighbourhood_status[$score_questions['neighbourhood_status']['answer'] != "" || $score_questions['neighbourhood_status']['answer'] != null ? $score_questions['neighbourhood_status']['answer'] : "Negative" ];
$neibourhood_check_as_per_pd_officer_max_score = ($l1_general/100) * ($neighbourhood_status_L2/100) * max($neighbourhood_status);
// $neibourhood_check_as_per_pd_officer_max_score = ($l1_general/100) * ($neighbourhood_status_L2/100) * max($neighbourhood_status);
$final_score_questions['general']['neighbourhood_status'] = array('l1_weightage' => $l1_general,'l2_weightage' => $neighbourhood_status_L2,'distributed_weightage' => $general_distribute_level_weightage,'answer' => $score_questions['neighbourhood_status']['answer'],'attributed_score' => ($neibourhood_check_as_per_pd_officer_actual_score), 'max_score' => ($neibourhood_check_as_per_pd_officer_max_score),'score_band'=>$neighbourhood_status[$score_questions['neighbourhood_status']['answer'] != "" || $score_questions['neighbourhood_status']['answer'] != null ?$score_questions['neighbourhood_status']['answer']: "Negative" ],'max_score_band' => max($neighbourhood_status));
}
// $final_score_questions['general']['neighbourhood_status'] = array('l1_weightage' => $l1_general,'l2_weightage' => $neighbourhood_status_L2,'distributed_weightage' => $general_distribute_level_weightage,'answer' => $score_questions['neighbourhood_status']['answer'],'attributed_score' => ($neibourhood_check_as_per_pd_officer_actual_score), 'max_score' => ($neibourhood_check_as_per_pd_officer_max_score),'score_band'=>$neighbourhood_status[$score_questions['neighbourhood_status']['answer'] != "" || $score_questions['neighbourhood_status']['answer'] != null ?$score_questions['neighbourhood_status']['answer']: "Negative" ],'max_score_band' => max($neighbourhood_status));
// }

View File

@ -786,7 +786,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
</tbody>
<?php }else
{
echo '<tr> <td class = "tdcenteralign">There is no other business asset available</td> </tr>';
echo '<tr> <td class = "tdcenteralign" colspan="10">There is no other business asset available</td> </tr>';
}