Example #1
0
 function get_compensation()
 {
     $s = new Staff_entitlement_m();
     $this->add_com_amount = $s->get_add_com($this->employee_id, $this->additional_compensation_id, $date = '');
     $this->total_adcom += $this->add_com_amount;
     $this->amount = $this->add_com_amount;
     $this->save_deductions_adcom($this->add_com_amount);
 }