コード例 #1
0
ファイル: writ_item.class.php プロジェクト: jafarkhani/rtfund
	private function compute_salary_item2_05($writ_rec) {
		//param1 : تعداد فرزند مشمول
		//param2 : حقوق مبناي حداقل حقوق جدول
		//param3 : ضريب

		$this->param1 = $writ_rec['included_children_count'];

		if ($writ_rec['included_children_count'] > 0) {
			$this->param2 = ($writ_rec['person_type'] == 1 && $writ_rec['execute_date'] > '2013-09-22' )  ? manage_salary_params::get_salaryParam_value("", $writ_rec['person_type'], SPT_SALARY_COEF, $writ_rec['execute_date']) : manage_writ_item::get_min_base_salary($writ_rec['person_type'], $writ_rec['execute_date']);
			//$this->param2 = manage_writ_item::get_min_base_salary($writ_rec['person_type'], $writ_rec['execute_date']);
			$this->param3 =  ($writ_rec['person_type'] == 1 &&  $writ_rec['execute_date'] > '2013-09-22' ) ?	 15 : 0.14;
			$value = $this->param1 * $this->param2 * $this->param3;
		} else
			$value = 0;

		return $value;
	}