fix
This commit is contained in:
parent
fbf2ddc7b6
commit
3b073b2a4f
|
|
@ -1139,7 +1139,7 @@ class HRHolidays(models.Model):
|
|||
'balance_leaves':duration})
|
||||
|
||||
def renewal_balance_leaves_last_day_of_year(self , current_date, item, already_exist , emp):
|
||||
leave_type = ['exam', 'marriage','parental']#'death'] # Just set type leave in list add new Leave
|
||||
leave_type = ['exam', 'marriage','parental','emergency']#'death'] # Just set type leave in list add new Leave
|
||||
if (item.leave_type in leave_type) and (already_exist.remaining_leaves < item.duration):
|
||||
duration = item.duration # >= already_exist.remaining_leaves and item.duration or already_exist.remaining_leaves
|
||||
# current_date = datetime(2024, 12, 31).date()
|
||||
|
|
|
|||
Loading…
Reference in New Issue