From 6bcde7aeea007a8f4b5f2e74ba5f5ae9add81eb8 Mon Sep 17 00:00:00 2001 From: Bakry Date: Tue, 20 May 2025 12:22:24 +0300 Subject: [PATCH] fix term --- odex25_hr/hr_termination/models/hr_termination.py | 4 ---- odex25_hr/hr_termination/wizard/termination_report_wiz.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/odex25_hr/hr_termination/models/hr_termination.py b/odex25_hr/hr_termination/models/hr_termination.py index beab77126..265899044 100644 --- a/odex25_hr/hr_termination/models/hr_termination.py +++ b/odex25_hr/hr_termination/models/hr_termination.py @@ -1112,7 +1112,3 @@ class HrSalaryRuleAndLoansLines(models.Model): account_credit = rec.salary_rule_id.get_credit_account_id(emp_type) rec.account_credit_id = account_credit.id - - - - diff --git a/odex25_hr/hr_termination/wizard/termination_report_wiz.py b/odex25_hr/hr_termination/wizard/termination_report_wiz.py index ca32987f0..9ee677bef 100644 --- a/odex25_hr/hr_termination/wizard/termination_report_wiz.py +++ b/odex25_hr/hr_termination/wizard/termination_report_wiz.py @@ -657,7 +657,7 @@ class ReportTerminationPublic(models.AbstractModel): if type == 'all' or type == 'leave': if salary > 0: amount_per_day = salary / 30 - lave_price = emp.remaining_leaves * amount_per_day + lave_price = leave_balance*amount_per_day if 'lave_price' not in data['total_sum']: data['total_sum']['lave_price'] = lave_price else: