Merge pull request #1836 from expsa/bakry_hr

Bakry hr
This commit is contained in:
bakry 2024-11-27 17:04:55 +03:00 committed by GitHub
commit 8865e94007
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,8 @@ class HrTermination(models.Model):
def _compute_holiday_amount(self):
for item in self:
if item.salary:
day_amount = item.salary / 30
days = item.employee_id.resource_calendar_id.work_days
day_amount = item.salary / days
holiday_amount = item.leave_balance * day_amount
item.leave_balance_money = holiday_amount