Commit 5d126a25 authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_payroll_l10n_fr: Minor fixup

 Don't add to total_contribution_relief if employer price is not set (None).
parent e50a4912
......@@ -142,7 +142,8 @@ for line_dict in line_dict_list:
}
else:
if base_contribution == contribution_relief:
total_contribution_relief += (line_dict['base'] * line_dict['employer_price']) #line_dict['employer_total_price']
if line_dict['employer_price']:
total_contribution_relief += (line_dict['base'] * line_dict['employer_price']) #line_dict['employer_total_price']
elif base_contribution in (csg_crds_taxable_to_income_tax, csg_non_taxable_to_income_tax):
csg_base = line_dict['base']
line_dict['report_section'] = base_contribution
......
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