private function compute_salary_item2_74 ($writ_rec){ $supervision = 0 ; if($writ_rec["post_id"] > 0 && $writ_rec["post_id"] != NULL ) { $management = manage_posts::get_PostType($writ_rec["staff_id"], $writ_rec["post_id"]) ; if($management['post_type'] == 5 ) $supervision = manage_posts::get_SupervisionKind($writ_rec["staff_id"], $writ_rec["post_id"]); } if($supervision == 3) { $coefSup = 0.85 ; } elseif($supervision == 5 ) { $coefSup = 0.40 ; } else return 0 ; $this->param1 = $coefSup ; $this->param2 = 0.783 ; if($writ_rec["execute_date"] > '2015-03-20') $this->param2 = 0.9 ; $obj = new manage_writ_item(); $value = $obj->compute_salary_item2_60($writ_rec) * $coefSup * $this->param2 ; return $value ; }