Commit bad96942 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_payroll_l10n_fr: do not reset variable in each loop

parent 583ed6e7
...@@ -81,8 +81,9 @@ employee_result_list = [ ...@@ -81,8 +81,9 @@ employee_result_list = [
employee_data_list, paysheet_data_list = zip(*employee_result_list) employee_data_list, paysheet_data_list = zip(*employee_result_list)
insurance_contract_id_list = set()
for employee_data_dict, paysheet_data_dict in employee_result_list: for employee_data_dict, paysheet_data_dict in employee_result_list:
insurance_contract_id_list = set([x[1] for x in paysheet_data_dict['taxable_base']]) insurance_contract_id_list.update(set([x[1] for x in paysheet_data_dict['taxable_base']]))
collective_contract_list = getDSNBlockDict(block_id='S21.G00.15') collective_contract_list = getDSNBlockDict(block_id='S21.G00.15')
for collective_contract in collective_contract_list: for collective_contract in collective_contract_list:
......
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