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
Pipeline #37777 failed with stage
in 0 seconds
...@@ -142,6 +142,7 @@ for line_dict in line_dict_list: ...@@ -142,6 +142,7 @@ for line_dict in line_dict_list:
} }
else: else:
if base_contribution == contribution_relief: if base_contribution == contribution_relief:
if line_dict['employer_price']:
total_contribution_relief += (line_dict['base'] * line_dict['employer_price']) #line_dict['employer_total_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): elif base_contribution in (csg_crds_taxable_to_income_tax, csg_non_taxable_to_income_tax):
csg_base = line_dict['base'] csg_base = line_dict['base']
......
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