Commit 422d839b authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_payroll_l10n_fr: remove wrong condition on subrogation

parent 38f1e0e0
...@@ -33,17 +33,13 @@ def getLeaveBlocAsDict(leave_period, leave_category): ...@@ -33,17 +33,13 @@ def getLeaveBlocAsDict(leave_period, leave_category):
bloc['S21.G00.60.001'] = leave_category.getCodification() bloc['S21.G00.60.001'] = leave_category.getCodification()
bloc['S21.G00.60.002'] = formatDate(leave_period.getStartDate()) bloc['S21.G00.60.002'] = formatDate(leave_period.getStartDate())
bloc['S21.G00.60.003'] = formatDate(leave_period.getStopDate()) bloc['S21.G00.60.003'] = formatDate(leave_period.getStopDate())
# employee left during this period bloc['S21.G00.60.004'] = '01' # we do subrogation
if from_date < leave_period.getStartDate() < effective_date: first_subrogation_day = addToDate(leave_period.getStartDate(), day=3)
bloc['S21.G00.60.004'] = '01' # we do subrogation bloc['S21.G00.60.005'] = formatDate(first_subrogation_day)
first_subrogation_day = addToDate(leave_period.getStartDate(), day=3) # 3 months of subrogation, as defined in the collective agreement
bloc['S21.G00.60.005'] = formatDate(first_subrogation_day) bloc['S21.G00.60.006'] = formatDate(addToDate(first_subrogation_day, month=3, days=-1))
# 3 months of subrogation, as defined in the collective agreement bloc['S21.G00.60.007'] = bank_account.getIban()
bloc['S21.G00.60.006'] = formatDate(addToDate(first_subrogation_day, month=3, days=-1)) bloc['S21.G00.60.008'] = bank_account.getBicCode()
bloc['S21.G00.60.007'] = bank_account.getIban()
bloc['S21.G00.60.008'] = bank_account.getBicCode()
else:
bloc['S21.G00.60.004'] = '02' # we don't do subrogation
# employee restarted work during this period # employee restarted work during this period
if getattr(leave_period, 'expiration_date', None): if getattr(leave_period, 'expiration_date', None):
bloc['S21.G00.60.010'] = formatDate(leave_period.getExpirationDate()) bloc['S21.G00.60.010'] = formatDate(leave_period.getExpirationDate())
......
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