?
Current Path : /home1/savoy/public_html/savoyglobal.net/ccnerp/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/ccnerp/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>Salary Settings Details</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 style="text-align:center;"><?php echo $tot_allowance; ?></td> <td style="text-align:center;"><?php echo $tot_deduct; ?></td> </tr> <tr> <th>Gross Salary</th> <th>Net Salary</th> </tr> <tr> <td style="text-align:center;"><?php echo $basicsalary + $tot_allowance; ?></td> <td style="text-align:center;"><?php echo ($basicsalary + $tot_allowance) - $tot_deduct; ?></td> </tr> <tr> <th style="text-align:center;">Payment Method</th> <td style="text-align:center;width: 50%"> <?php $paymode = $viewinfo->payment_method; $paymodes = $this->mastermodel->getSingleFieldValue('payment_methods', 'methods', 'method', $paymode); echo $paymode; $bank_info = $this->mastermodel->get_data_srow('salarybank', $viewinfo->employee_salary_id, 'sal_id'); // echo $viewinfo->employee_salary_id; $acc_no = ''; $branch = ''; $acc_holder = ''; $bank_name = ''; $paymethod = $viewinfo->payment_method; if (!empty($bank_info)) { $acc_no = $bank_info->acc_no; $branch = $bank_info->branch_name; $acc_holder = $bank_info->ch_dep_no; $bank_name = $bank_info->bank_name; } // if ($paymethod != 'cash') { // $paydetails = $this->mastermodel->get_data_srow('salarybank', $viewinfo->employee_salary_id, 'sal_id'); // } if ($paymethod == 'bank') { ?> <table class="sort"> <tr> <td> <label id="labelDDNo1" style="color:#000;">Account Holder</label> <?= $acc_holder ?> </td> <td> <label style="color:#000;">Bank Name</label> <?= $bank_name ?> </td> </tr> <tr> <td> <label style="color:#000;">Account Number</label> <?= $acc_no ?> </td> <td> <label style="color:#000;">Branch Name</label> <?= $branch ?> </td> </tr> </table> <?php } ?> </td> </tr> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main">Insurance Details</div> <table class="table"> <tr> <th>Type of Insurance</th> <th>Insurance Company</th> <th>Policy No</th> <th>Plan Name</th> <th>Sum Insured</th> </tr> <?php $insuranceDetails = $this->mastermodel->get_data('employee_salary_medical', $viewinfo->employee_salary_id, 'employee_salary_id'); $k = 1; foreach ($insuranceDetails as $insu) { ?> <tr> <td><?= $insu['type'] ?></td> <td><?= $insu['company'] ?></td> <td><?= $insu['policy'] ?></td> <td><?= $insu['plan'] ?></td> <td><?= $insu['sum'] ?></td> </tr> <?php } ?> </table> </div> </div> </div> <?php echo form_close(); ?> <?php $data['master_id'] = $viewinfo->employee_id; $data['controller'] = 'hr'; $data['controller_function'] = 'viewinhrsearch'; $data['page'] = 'view_salary_setting'; $data['model_function'] = 'search_salary_setting'; $this->load->view('master/uploaded_files', $data); echo form_close(); ?>