?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/application/views/hr/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/rms/application/views/hr/single_salary_setting.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $emplyee=$this->mastermodel->getdatas('employee','employee_id','','employee_id'); $allowdeduc = $this->mastermodel->getdatas('allowdeduc','allowdeduc_id'); $employee_salary_allowdeduc = $this->mastermodel->getdatas('employee_salary_allowdeduc','employee_salary_id'); $curency = $this->mastermodel->getdatas('finance_currency','currency_id'); ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_salary_setting','view_salary_setting','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Creating new Lease Agreement</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('',$attributes); ?> <div class="grid_6"> <div class="box"> <div class="content no-padding"> <div class="header main"> Employee Salary Details</div> <div class="section _100"> <label>Employee Name</label> <div class="single_page"> <?=$viewinfo->employee_name?> </div> </div> <div class="section _100"> <label>W.F.E <br/> Date </label> <div class="single_page"> <?=$this->mastermodel->convertdatenormalformat($viewinfo->wef_date)?> </div> </div> <div class="section _100"> <label>Basic <br/>Salary </label> <div class="single_page"> <?=$viewinfo->basic_salary?> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main">Annual Ticket Settings</div> <div class="content no-padding"> <div class="section _100"> <label>From:</label> <div class="single_page"> <?=$viewinfo->from_ticket?> </div> </div> <div class="section _100"> <label>To:</label> <div class="single_page"> <?=$viewinfo->to_ticket?> </div> </div> <div class="section _100"> <label>Return Ticket</label> <div class="single_page"> <?php if($viewinfo->return_ticket=='1'){ echo 'Yes' ;} else echo "No";?> </div> </div> <div class="section _100"> <label>No.of Tickets</label> <div class="single_page"> <?=$viewinfo->no_tickets?> </div> </div> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main"> Allowance/Deduction Details</div> <table class="table"> <tr> <th align="center">Title</th> <th align="center">Mode</th> <th align="center">Amount/Percentage</th> <th align="center">Sub Total</th> <th align="center">Type</th> </tr> <?php $i=1; $tot_allowance=0; $tot_deduct =0; $basicsalary = $viewinfo->basic_salary; $dept=$this->mastermodel->get_data('allowdeduc','0','allowdeduc_type'); foreach($dept as $dep) { if($dep['allowdeduc_mode']==0) $mode="Direct Amount"; else $mode="Percentage"; ?> <tr> <td><?=$dep['allowdeduc_name'];?><input type="hidden" value ="<?=$dep['allowdeduc_id'];?>" name="allowdeduc_id_<?=$i;?>"/> </td> <td><?=$mode?></td> <?php $amount_allowdeduc=$this->mastermodel->get_data_dual_srow('employee_salary_allowdeduc',$dep['allowdeduc_id'],'allowdeduc_id',$viewinfo->employee_salary_id,'employee_salary_id'); if(!empty ($amount_allowdeduc)) $allowdeduc_amount = $amount_allowdeduc->amount; else $allowdeduc_amount=1; ?> <td> <?=$allowdeduc_amount;?> <?php if($dep['allowdeduc_mode']==1) { ?> <div style="margin-top:-30px;margin-left: 100px;">%</div> <?php } ?> </td> <?php if($dep['allowdeduc_mode']==1) $allototal= $allowdeduc_amount/100*$basicsalary; else $allototal=$allowdeduc_amount; $tot_allowance+= $allototal; ?> <td><?=$allototal;?> <td>Allowance</td> </tr> <?php $i++; } ?> <input type="hidden" name="allowcount" id="allowcount" value="<?=$i?>" /> <?php $dept=$this->mastermodel->get_data('allowdeduc','1','allowdeduc_type'); foreach($dept as $dep) { if($dep['allowdeduc_mode']==0) $mode="Amount"; else $mode="Percentage"; ?> <tr> <td> <?=$dep['allowdeduc_name'];?><input type="hidden" value ="<?= $dep['allowdeduc_id'];?>" name="allowdeduc_id_<?=$i;?>"/> </td> <td> <?=$mode?> </td> <?php $amount_allowdeduc=$this->mastermodel->get_data_dual_srow('employee_salary_allowdeduc',$dep['allowdeduc_id'],'allowdeduc_id',$viewinfo->employee_salary_id,'employee_salary_id'); $allowdeduc_amount = $amount_allowdeduc->amount; ?> <td> <?=$allowdeduc_amount;?> <?php if($dep['allowdeduc_mode']==1) { ?> <div style="margin-top:-30px;margin-left: 100px;">%</div> <?php } ?> </td> <?php if($dep['allowdeduc_mode']==1) $dedtotal= $allowdeduc_amount/100*$basicsalary; else $dedtotal=$allowdeduc_amount; $tot_deduct += $dedtotal; ?> <td><?=$dedtotal?></td> <td>Deduction</td> </tr> <?php $i++; } ?> <input type="hidden" name="dedcount" id="dedcount" value="<?=$i?>" /> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main">Salary Details</div> <table class="table" cellpadding="0" cellspacing="0" > <tr> <th>Allowance</th> <th>Deduction</th> </tr> <tr> <td><?php echo $tot_allowance; ?></td> <td><?php echo $tot_deduct ; ?></td> </tr> <tr> <th>Gross Salary</th> <th>Net Salary</th> </tr> <tr> <td><?php echo $basicsalary + $tot_allowance; ?></td> <td><?php echo ($basicsalary + $tot_allowance) - $tot_deduct ; ?></td> </tr> <tr> <th>Payment Method</th> <td style="width: 50%"> <?php if($viewinfo->payment_method == "Cheque"){ echo "Cheque"; } ?> <?php if($viewinfo->payment_method == "BankTransfer"){ echo "Bank Transfer"; } ?> </td> </tr> </table> </div> </div> </div> <?php echo form_close();?>