$ppf->setMaximumTime($data['maximum_time']); if (isset($data['include_meal_policy'])) { $ppf->setIncludeMealPolicy(TRUE); } else { $ppf->setIncludeMealPolicy(FALSE); } if (isset($data['include_break_policy'])) { $ppf->setIncludeBreakPolicy(TRUE); } else { $ppf->setIncludeBreakPolicy(FALSE); } $ppf->setWageGroup($data['wage_group_id']); $ppf->setRate($data['rate']); $ppf->setPayStubEntryAccountId($data['pay_stub_entry_account_id']); $ppf->setAccrualPolicyId($data['accrual_policy_id']); $ppf->setAccrualRate($data['accrual_rate']); $ppf->setBranchSelectionType($data['branch_selection_type_id']); if (isset($data['exclude_default_branch'])) { $ppf->setExcludeDefaultBranch(TRUE); } else { $ppf->setExcludeDefaultBranch(FALSE); } $ppf->setDepartmentSelectionType($data['department_selection_type_id']); if (isset($data['exclude_default_department'])) { $ppf->setExcludeDefaultDepartment(TRUE); } else { $ppf->setExcludeDefaultDepartment(FALSE); } if ($current_company->getProductEdition() == 20) { $ppf->setJobGroupSelectionType($data['job_group_selection_type_id']); $ppf->setJobSelectionType($data['job_selection_type_id']);