Family Details Changes For CFPL reports : ps

This commit is contained in:
Sanjeev 2021-07-06 18:50:38 +05:30
parent f860cdd486
commit 5abe78b78e
4 changed files with 28 additions and 9 deletions

View File

@ -4150,7 +4150,7 @@ if($total_no_of_business > 0) {
echo '<p>' . $intro_text . '</p>';echo '<p>' . $residence_text . '</p>';
?>
<?php if($fmValue['family_members_details'][0]['name'] != "" ){ ?>
<p>The table below provides details of other family members of <?php echo $fmValue['selected_person']." :";?></p>
<table class="scorecard_table">
@ -4178,7 +4178,13 @@ if($total_no_of_business > 0) {
<?php } ?>
</tbody>
</table>
<?php }?>
<?php } }
if($fmValue['no_family_members_clix'] != "" || $fmValue['no_dependents_clix'] != "" ){
$text = 'There are '.$fmValue['no_family_members_clix'].' family member(s) ';
$text .= isset($fmValue['no_dependents_clix']) && $fmValue['no_dependents_clix'] != 0 ? ' of which ' . ($fmValue['no_dependents_clix'] == 1 ? 'One is' : $fmValue['no_dependents_clix']. ' are'). ' dependent on applicant.' : ' and none of them dependent on applicant.';
echo '<p>' . $text . '</p>';
}
?>
<?php }
else{?>
<p>Other Family Members is not available.</p>

View File

@ -4214,7 +4214,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<p>' . $intro_text . '</p>';echo '<p>' . $residence_text . '</p>';
?>
<?php if($fmValue['family_members_details'][0]['name'] != "" ){ ?>
<p>The table below provides details of other family members of <?php echo $fmValue['selected_person']." :";?></p>
<table class="scorecard_table">
@ -4242,7 +4242,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php } ?>
</tbody>
</table>
<?php }?>
<?php }} if($fmValue['no_family_members_clix'] != "" || $fmValue['no_dependents_clix'] != "" ){
$text = 'There are '.$fmValue['no_family_members_clix'].' family member(s) ';
$text .= isset($fmValue['no_dependents_clix']) && $fmValue['no_dependents_clix'] != 0 ? ' of which ' . ($fmValue['no_dependents_clix'] == 1 ? 'One is' : $fmValue['no_dependents_clix']. ' are'). ' dependent on applicant.' : ' and none of them dependent on applicant.';
echo '<p>' . $text . '</p>';
} ?>
<?php }
else{?>
<p>Other Family Members is not available.</p>

View File

@ -4127,7 +4127,8 @@ if($total_no_of_business > 0) {
?>
<h3 contenteditable="true">Family Information:</h3>
<?php if(count($familyResult)>0){
<?php print_r($familyResult); if(count($familyResult)>0){
//print_r($familyResult);
?>
<!-- <div id='page_break'></div> -->
@ -4143,7 +4144,7 @@ if($total_no_of_business > 0) {
echo '<p>' . $intro_text . '</p>';echo '<p>' . $residence_text . '</p>';
?>
<?php if($fmValue['family_members_details'][0]['name'] != "" ){ ?>
<p>The table below provides details of other family members of <?php echo $fmValue['selected_person']." :";?></p>
<table class="scorecard_table">
@ -4171,7 +4172,11 @@ if($total_no_of_business > 0) {
<?php } ?>
</tbody>
</table>
<?php }?>
<?php } }if($fmValue['no_family_members_clix'] != "" || $fmValue['no_dependents_clix'] != "" ){
$text = 'There are '.$fmValue['no_family_members_clix'].' family member(s) ';
$text .= isset($fmValue['no_dependents_clix']) && $fmValue['no_dependents_clix'] != 0 ? ' of which ' . ($fmValue['no_dependents_clix'] == 1 ? 'One is' : $fmValue['no_dependents_clix']. ' are'). ' dependent on applicant.' : ' and none of them dependent on applicant.';
echo '<p>' . $text . '</p>';
} ?>
<?php }
else{?>
<p>Other Family Members is not available.</p>

View File

@ -4144,7 +4144,7 @@ if($total_no_of_business > 0) {
echo '<p>' . $intro_text . '</p>';echo '<p>' . $residence_text . '</p>';
?>
<?php if($fmValue['family_members_details'][0]['name'] != "" ){ ?>
<p>The table below provides details of other family members of <?php echo $fmValue['selected_person']." :";?></p>
<table class="scorecard_table">
@ -4172,7 +4172,11 @@ if($total_no_of_business > 0) {
<?php } ?>
</tbody>
</table>
<?php }?>
<?php } } if($fmValue['no_family_members_clix'] != "" || $fmValue['no_dependents_clix'] != "" ){
$text = 'There are '.$fmValue['no_family_members_clix'].' family member(s) ';
$text .= isset($fmValue['no_dependents_clix']) && $fmValue['no_dependents_clix'] != 0 ? ' of which ' . ($fmValue['no_dependents_clix'] == 1 ? 'One is' : $fmValue['no_dependents_clix']. ' are'). ' dependent on applicant.' : ' and none of them dependent on applicant.';
echo '<p>' . $text . '</p>';
}?>
<?php }
else{?>
<p>Other Family Members is not available.</p>