minor fix

This commit is contained in:
wilsongomez 2022-03-19 09:47:24 -05:00
parent 5ddcae1654
commit c43dad125e
1 changed files with 4 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class PayrollAuditoryReport(Report):
dom_payroll = [
('period', 'in', data['periods']),
('state', '!=', 'draft'),
# ('employee.party.id_number', '=', 1002031233),
# ('employee.party.id_number', '=', 1002024128),
]
if data['department']:
dom_payroll.append(
@ -65,7 +65,7 @@ class PayrollAuditoryReport(Report):
('state', '!=', 'draft'),
('liquidation_date', '>=', start_date),
('liquidation_date', '<=', end_date),
# ('employee.party.id_number', '=', 1002031233),
# ('employee.party.id_number', '=', 1002024128),
]
if data['department']:
dom_liquidation.append(
@ -270,7 +270,7 @@ class PayrollAuditoryReport(Report):
res[key]['certifiable_non_benefits'] += [amount]
if concept in ('unemployment', 'interest'):
if line['liquidation.']['kind'] != 'contract':
if line['liquidation.']['kind'] != 'contract' and concept != 'interest':
res[key]['bonus_paid_fund'] += [amount]
else:
res[key]['bonus_and_interest'] += [amount]
@ -286,6 +286,7 @@ class PayrollAuditoryReport(Report):
for k, v in rec.items():
if k not in vals:
try:
# print(k, v)
rec[k] = sum(v)
except:
print(v)