changes in reports

This commit is contained in:
Elvis 2023-10-04 17:11:41 -05:00
parent aa1ed8d9b8
commit c9a1e39fca
1 changed files with 3 additions and 3 deletions

View File

@ -1176,7 +1176,7 @@ class PayrollGlobalReport(Report):
raise WageTypeConceptError(
gettext('staff_payroll_co.msg_type_concept_not_exists', s=line.wage_type.name))
parties[employee_id][concept] += line.amount
parties[employee_id]['worked_days'] += Decimal(payroll.worked_days_effective)
parties[employee_id]['worked_days'] += Decimal(math.ceil(payroll.worked_days_effective))
parties[employee_id]['gross_payments'] += payroll.gross_payments
parties[employee_id]['total_deductions'] += payroll.total_deductions
parties[employee_id]['net_payment'] += payroll.net_payment
@ -1417,7 +1417,6 @@ class PayrollPaycheckReport(Report):
res[key][w + '_code'] = ''
res[key][w + '_name'] = ''
res[key][w + '_rate'] = 0
res[key]['license_amount'] = 0
res[key]['incapacity_amount'] = 0
res[key]['holidays_amount'] = 0
@ -1469,7 +1468,8 @@ class PayrollPaycheckReport(Report):
concept = line['wage_type.']['type_concept']
if concept in wage_type_default and concept != 'salary':
unit_formula = line['wage_type.']['unit_price_formula']
if concept == 'sena':
res[key]['variation'] -= line['amount']
if unit_formula:
try:
unit_formula = Decimal(