sales PD report changes : ps

This commit is contained in:
Sanjeev 2021-03-27 18:31:58 +05:30
parent 12f8c83516
commit 9ae1a1cb83

View File

@ -177,6 +177,33 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<td>PIN</td>
<td class = "tdcenteralign" colspan="2"><?php if(isset($section1['pincode_others'])){ echo $section1['pincode_others']; } else { echo $section1['pincode']; }?></td>
</tr>
<?php if( ($master[0]['sales_pd_type'] == 2) && (($product_name === 'WCTL') || ($product_name === 'LFMP') ) ){ ?>
<tr>
<td colspan="3">Applicant qualification</td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['applicant_qualification'];?></td>
<tr>
<td colspan="3">Mother's Name</td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['mother_name'];?></td>
</tr>
<tr>
<td colspan="3">Official Email ID</td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['official_emailid'];?></td>
</tr>
<tr>
<td colspan="3">Current residence Address</td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['current_residence_address'];?></td>
</tr>
<tr>
<td colspan="3">Current residence Address ownership (Rented/Owned) </td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['current_residence_ownership'];?></td>
</tr>
<tr>
<td colspan="3">Business address/office address (Rented/Owned) </td>
<td class = "tdcenteralign" colspan="7"> <?php echo $section1['business_office_address'];?></td>
</tr>
<?php } ?>
</tbody>
</table>
<br>
@ -199,7 +226,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</tr>
</tbody>
</table>
<br>
<!-- initially br statement due to extra question. changed to page break condition -->
<?php if( ($master[0]['sales_pd_type'] == 2) && (($product_name === 'WCTL') || ($product_name === 'LFMP') ) ){
?> <div id="page_break"></div> <?php } else { ?> <br> <?php } ?>
<table class="scorecard_table" style="table-layout: fixed">
<tbody>
<tr>
@ -408,13 +437,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<tr>
<td colspan="3">Income to be Considered (Rs Per Annum) </td>
<td class="tdcenteralign" colspan="2"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section5['income_considered'] )?></td>
<td colspan="3" >Income Considered (Rs Per Mth) </td>
<td colspan="3" ><?php if( ($master[0]['sales_pd_type'] == 2) && (($product_name === 'WCTL') || ($product_name === 'LFMP') ) ){ echo "Margin %"; } else { echo "Income Considered (Rs Per Mth)"; } ?></td>
<td class="tdcenteralign" colspan="2"><?php echo MYUTIL::customIndianNumberFormat( round(($section5['income_considered'] / 12 ),2) );?></td>
</tr>
<tr>
<td colspan="3">Income assessment Program Recommended </td>
<td class="tdcenteralign" colspan="2"><?php echo $section5['income_assessment_program_recommended']?></td>
<td colspan="3" >Fixed Obligations (Rs per month) </td>
<td colspan="3" ><?php if( ($master[0]['sales_pd_type'] == 2) && (($product_name === 'WCTL') || ($product_name === 'LFMP') ) ){ echo "Fixed Obligations (Rs Per annum)"; } else { echo "Fixed Obligations (Rs per month)"; } ?></td>
<td class="tdcenteralign" colspan="2"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat( $section5['fixed_obligations'] )?></td>
</tr>
</tbody></table>
@ -475,7 +504,7 @@ if(isset($section6))
<th class="thlargefont" colspan="10" >Final Remarks of Sales officer</th>
</tr>
<?php if($master[0]['sales_pd_type'] == 1){?>
<?php if($master[0]['sales_pd_type'] == 2){?>
<tr>
<td colspan="4" >Business activity seen during visit (Yes / No)</td>
<td class="tdcenteralign" ><?php echo $section7['business_activity_seen']?></td>
@ -492,7 +521,13 @@ if(isset($section6))
<tr>
<td colspan="2" >Any Other remarks </td>
<td style="text-align: justify;" colspan="8" ><?php echo $section7['any_other_remarks']?></td>
</tr>
</tr>
<?php if( ($master[0]['sales_pd_type'] == 1) && (($product_name === 'WCTL') || ($product_name === 'LFMP') ) ){?>
<tr>
<td colspan="4">Behaviour on call (Rude/Neutral/Good/Pleasant)</td>
<td colspan="6" class="tdcenteralign" ><?php echo $section7['behaviour_call']?></td>
</tr>
<?php }?>
</tbody>
</table>
<br><br>