mirror of
https://bitbucket.org/presik/trytonpsk-staff_payroll_co.git
synced 2023-12-14 06:42:56 +01:00
minor fix
This commit is contained in:
parent
a73b961d7c
commit
c888f447d1
|
@ -1106,8 +1106,8 @@ class PayrollGlobalReport(Report):
|
|||
'net_payment', 'worked_days', 'gross_payments', 'total_deductions',
|
||||
'others_payments', 'others_deductions'
|
||||
]
|
||||
lines_fields = dict(WageType.type_concept.selection).keys()
|
||||
if '' in lines_fields:
|
||||
lines_fields = dict(WageType.type_concept.selection)
|
||||
if '' in lines_fields.keys():
|
||||
lines_fields.pop('')
|
||||
default_values = {}
|
||||
|
||||
|
@ -1115,7 +1115,7 @@ class PayrollGlobalReport(Report):
|
|||
default_values.setdefault(field, None)
|
||||
for field in fields_numeric:
|
||||
default_values.setdefault(field, Decimal(0))
|
||||
for field in lines_fields:
|
||||
for field in lines_fields.keys():
|
||||
default_values.setdefault(field, Decimal(0))
|
||||
return default_values
|
||||
|
||||
|
|
Loading…
Reference in a new issue