Commit 67655b59 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_payroll_l10n_fr: support declaration of DNS for organisations without employees

parent cf1fc096
...@@ -98,6 +98,11 @@ if block_id == 'S20.G00.05': ...@@ -98,6 +98,11 @@ if block_id == 'S20.G00.05':
rubric_value_dict['S20.G00.05.009'] = '' rubric_value_dict['S20.G00.05.009'] = ''
rubric_value_dict['S20.G00.05.010'] = '01' rubric_value_dict['S20.G00.05.010'] = '01'
# Empty DSN
if block_id == 'S10.G00.08':
# This information has as destination the retirement organisation
rubric_value_dict['S20.G00.08.001'] = '88'
# Entreprise # Entreprise
if block_id == 'S21.G00.06': if block_id == 'S21.G00.06':
# Calculate the average manpower of all year, if month is December # Calculate the average manpower of all year, if month is December
......
...@@ -71,7 +71,11 @@ dsn_file.append(getDSNBlockDict(block_id='S10.G00.01', target=organisation)) ...@@ -71,7 +71,11 @@ dsn_file.append(getDSNBlockDict(block_id='S10.G00.01', target=organisation))
dsn_file.append(getDSNBlockDict(block_id='S10.G00.02', target=organisation_contact)) dsn_file.append(getDSNBlockDict(block_id='S10.G00.02', target=organisation_contact))
# Monthly DSN # Monthly DSN
dsn_file.append(getDSNBlockDict(block_id='S20.G00.05', year=declared_year, month=declared_month, order=nb_dsn, type='01')) dsn_file.append(getDSNBlockDict(block_id='S20.G00.05', year=declared_year, month=declared_month, order=nb_dsn, type=dsn_type))
# empty DSN
if dsn_type == '02':
dsn_file.append(getDSNBlockDict(block_id='S10.G00.08', target=organisation_contact))
dsn_file.append(getDSNBlockDict(block_id='S21.G00.06', target=organisation)) dsn_file.append(getDSNBlockDict(block_id='S21.G00.06', target=organisation))
......
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