minor fix

This commit is contained in:
Camilo Sarmiento 2020-08-10 12:13:49 -05:00
parent 0ef20a7faa
commit bcab77f1e1
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1 @@
,developer,developer-UX430UA,10.08.2020 11:37,file:///home/developer/.config/libreoffice/4;

View file

@ -1626,6 +1626,8 @@ class Exo2276Report(Report):
domain_ = cls.get_domain_payroll(data)
payrolls = Payroll.search([domain_])
new_objects = {}
start_period = data['start_period']
end_period = data['end_period']
index = 0
@ -1642,7 +1644,7 @@ class Exo2276Report(Report):
'first_family_name': party.first_family_name,
'second_family_name':party.second_family_name,
'first_name': party.first_name,
'second_name':party.second_name,
'second_name': party.second_name,
'addresses': party.addresses[0].street,
'department_code': party.department_code,
'city_code': party.city_code,
@ -1695,6 +1697,8 @@ class Exo2276Report(Report):
new_objects[party.id]['cesanpag'] = _cesanpag
report_context['records'] = new_objects.values()
report_context['end_period'] = end_period
report_context['start_period'] = start_period
report_context['today'] = date.today()
report_context['company'] = user.company
return report_context