?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/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/www/savoyglobal.net/drafthr/system/application/views/HR/singlecommissionpayment.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ foreach($viewinfo as $updata) { $staffid =$updata['staffid']; $date = $updata['date']; $staffsalaryid=$updata['id']; $commission = $updata['commission']; } $date=$this->mastermodel->convdatformat($date); $premiumgen=$this->hrmodel->get_com_premgen($updata['staffid'],$date); $premiumpay=$this->hrmodel->get_com_prempay($updata['staffid'],$date); $premium = 0; foreach($premiumgen as $prem) { $premium+=$prem['premium']; } $amount = 0; foreach($premiumpay as $prempa) { $amount+=$prempa['amount']; } $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); $premiumgen=$this->mastermodel->get_data('commissionpaymentdetails',$staffsalaryid,'compaymentid'); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadcommissionpayment()" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Commission Details</legend> <ul> <li> </li> <li> <label class="salary">Employee Name</label><label class="lbl_title"><?=$stf->name;?></label></li> <li><label class="salary">Date</label><label class="lbl_title"><?=$date;?></label> </li> <?php $stfper=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); $stfemp=$this->mastermodel->get_data_srow('staffemployeedetails',$staffid,'staffid'); $desg = $this->mastermodel->get_data_srow('designation',$stfemp->designationid,'id'); $dept= $this->mastermodel->get_data_srow('department',$stfemp->deptid,'id'); ?> <li> <fieldset> <ul> <li><label>Employee No</label><label class="lbl_title"> <?=$stfper->employeeid;?></label></li> <li><label>Designation</label><label class="lbl_title"> <?=$desg->designation;?></label></li> <li><label>Department</label><label class="lbl_title"> <?=$dept->departmentname;?></label></li> </ul> </fieldset> <li> <?php $gross=0; ?> </li> <li><label class="salary">Premium Generated </label><label class="lbl_title"><?php echo $premium; ?></label> </li> <li><label class="salary">Premium Payment Received </label><label class="lbl_title"><?php echo $amount; ?></label> </li> <table class="sort" cellpadding="0" cellspacing="0" align="right" ><caption>Commission Earnings</caption> <thead><tr> <th>Type of Cover</th> <th>Commision(%)</th> <th>Commission on </th> <th>Commision Amount</th> </tr><?php $i=1; $totalpremium = 0; $flag = 0; foreach($premiumgen as $prem) { $covername=$this->mastermodel->get_data_srow('covers',$prem['cover_id'],'id'); ?> <tr> <td width="200px"><?=$covername->cover;?></td> <td><?= $prem['comperc'];?></td> <td><?= $prem['comon'];?></td> <td><?= $prem['comamt'];?></td> </tr> <?php $i++; $totalpremium += $prem['comamt']; } ?> <tr><td colspan="3">Total Commision</td><td><?= $totalpremium;?></td></tr> </table></li> </ul> </fieldset>