Esempio n. 1
0
 function information_delete($id = '')
 {
     $di = new Deduction_information();
     $di->get_by_id($id);
     $di->delete();
     return Redirect::to('payroll/deduction/information', 'refresh');
 }
Esempio n. 2
0
    <th width="9%">Months to Pay</th>
    <th width="9%">Monthly Due</th>
    <th width="9%">Start</th>
    <th width="10%">End</th>
    <th width="12%">Status</th>
    <th width="27%">Actions</th>
  </tr>
  <?php 
foreach ($deductions as $deduction) {
    ?>
  		<?php 
    $bg = $this->Helps->set_line_colors();
    ?>
        <?php 
    $d = new Deduction_information();
    $d->get_by_id($deduction->deduction_information_id);
    // Get agency
    $agency = new Deduction_agency();
    $agency->get_by_id($d->deduction_agency_id);
    //var_dump( $d->deduction_agency_id);
    ?>
      <tr bgcolor="<?php 
    echo $bg;
    ?>
" onmouseover="this.bgColor = '<?php 
    echo $this->config->item('mouseover_linecolor');
    ?>
';" 
    onmouseout ="this.bgColor = '<?php 
    echo $bg;
    ?>
Esempio n. 3
0
 function get_deduction()
 {
     $this->amount = 0;
     $d = new Deduction_information();
     $d->get_by_id($this->deduction_id);
     if ($d->type == 'tax') {
         $this->amount = $this->get_tax();
     } else {
         if ($d->type == 'premiums') {
             if ($d->reference_table != '') {
                 $CI =& get_instance();
                 if ($d->er_share == 'yes') {
                     $this->share = 'employer_share';
                 } else {
                     $this->share = 'employee_share';
                 }
                 // Phil Health
                 if ($d->reference_table == 'philhealth') {
                     // Lets check if Employer Share or not
                     $this->amount = $this->phil_health_deductions();
                 }
                 // Pagibig
                 if ($d->reference_table == 'pagibig') {
                     $this->amount = $this->pagibig_gsis_deductions($d->amount);
                 }
                 // GSIS
                 if ($d->reference_table == 'gsis') {
                     $this->amount = $this->pagibig_gsis_deductions($d->amount, 'gsis');
                 }
             }
         } else {
             if ($d->type == 'loan') {
                 $this->amount = $this->loan_deductions();
             }
         }
     }
 }