Commit b3ebacc7 authored by Kevin Deldycke's avatar Kevin Deldycke

Better Role and Grade test condition

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7737 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 292c7d84
...@@ -87,12 +87,12 @@ if start_date == None and stop_date == None:\n ...@@ -87,12 +87,12 @@ if start_date == None and stop_date == None:\n
employees = []\n employees = []\n
\n \n
for person in subordinate_list:\n for person in subordinate_list:\n
if person.getPortalType() == \'Person\' and \\\n if person.getPortalType() == \'Person\' and \\\n
person.getValidationState() == \'validated\' and \\\n person.getValidationState() == \'validated\' and \\\n
person.getRole() == \'internal\' and \\\n person.getDefaultCareerStopDate() >= stop_date and \\\n
person.getDefaultCareerGrade() != \'trainee\' and \\\n person.getDefaultCareerStartDate() <= start_date and \\\n
person.getDefaultCareerStopDate() >= stop_date and \\\n person.getRole().endswith(\'internal\') and \\\n
person.getDefaultCareerStartDate() <= start_date:\n not person.getDefaultCareerGrade().endswith(\'trainee\'):\n
# TODO: take car of discontinued career step period\n # TODO: take car of discontinued career step period\n
if person not in employees:\n if person not in employees:\n
employees.append(person)\n employees.append(person)\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment