private function compute_salary_item2_71 ($writ_rec){ $value = 0 ; $NowPostTyp = manage_posts::get_PostType($writ_rec['staff_id']) ; if($NowPostTyp['post_type'] != POST_EXE_MANAGER && $NowPostTyp['post_type'] != POST_EXE_SUPERVICE ){ $writObj = manage_writ::get_last_writ_With_salry_before_date($writ_rec['staff_id'], $writ_rec['execute_date']); $ptype = manage_posts::get_PostType($writObj->staff_id , $writObj->post_id) ; if($writObj->execute_date > '2013-02-18' && ($ptype['post_type'] == POST_EXE_MANAGER || $ptype['post_type'] == POST_EXE_SUPERVICE ) ) { $SumItems = self::compute_writ_items_sum($writObj->writ_id , $writObj->writ_ver , $writ_rec["staff_id"], '(10266,10267)'); $value = 0.8 * $SumItems ; } if (!($value > 0)) { return 0; } return $value; } }