Example #1
0
    <?php 
$p = new Personal_m();
?>
    
    <?php 
foreach ($rows as $row) {
    ?>
    
	<?php 
    $p->get_by_employee_id($row['id']);
    ?>
    <?php 
    $c->get_by_employee_id($row['employee_id']);
    ?>
    <?php 
    $j->get_days($period, $row['employee_id']);
    ?>
    <?php 
    $this->tax->status = $c->status;
    $this->tax->salary_grade = $row['salary_grade'];
    $this->tax->step = $row['step'];
    $this->tax->days = $j->days;
    $this->tax->hours = $j->hours;
    $this->tax->count_working_days = $count_working_days;
    $this->tax->tax_exemption = $row['tax_status'] != 'Single' ? 'ME' : 'S';
    $this->tax->tax_exemption .= $row['dependents'];
    $this->tax->initialize();
    $this->tax->grand_total_salary += $this->tax->total_salary;
    ?>
    <?php 
    //$grand_total_salary += $total_salary;