From 7d96b06d447f94c5c106b5bf12c2bad9151fcf83 Mon Sep 17 00:00:00 2001 From: Bakry Date: Wed, 15 Oct 2025 13:59:57 +0300 Subject: [PATCH] fix round termination --- odex25_hr/hr_termination/models/hr_termination.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/odex25_hr/hr_termination/models/hr_termination.py b/odex25_hr/hr_termination/models/hr_termination.py index e70be1a16..62441909c 100644 --- a/odex25_hr/hr_termination/models/hr_termination.py +++ b/odex25_hr/hr_termination/models/hr_termination.py @@ -718,14 +718,14 @@ class HrTermination(models.Model): total_allowance = 0.0 for item in self.allowance_deduction_ids: if item.category_id.rule_type == 'deduction': - total_deduction += item.amount + total_deduction += round(item.amount,2) elif item.category_id.rule_type == 'allowance': - total_allowance += item.amount + total_allowance += round(item.amount,2) # Other salary rules treat as allowance elif item.category_id.rule_type != 'deduction': - total_allowance += item.amount + total_allowance += round(item.amount,2) self.deduction_total = total_deduction self.allowance_total = total_allowance