terminate emp there custody requests exceeded
This commit is contained in:
parent
6d1fe6622a
commit
cae617b330
|
|
@ -222,12 +222,7 @@ class HrTermination(models.Model):
|
|||
if item.salary:
|
||||
|
||||
days = item.employee_id.resource_calendar_id.work_days
|
||||
if days:
|
||||
day_amount = item.salary / days
|
||||
else:
|
||||
day_amount = 5.0
|
||||
|
||||
# day_amount = item.salary / days
|
||||
day_amount = item.salary / days
|
||||
holiday_amount = item.leave_balance * day_amount
|
||||
item.leave_balance_money = round(holiday_amount,2)
|
||||
|
||||
|
|
@ -825,7 +820,6 @@ class HrTermination(models.Model):
|
|||
'You can not create termination when there is "%s" employee petty cash payment in state not in state Return Done for "%s" please reconcile it') % (
|
||||
len(employee_petty_cash_payment), self.employee_id.name))
|
||||
if custody_request_module:
|
||||
print("lokokoko")
|
||||
exceeded_custody = self.env['hr.request.pledge'].search([
|
||||
('employee_id', '=', self.employee_id.id),
|
||||
('custody_status', '=', 'exceeded')
|
||||
|
|
|
|||
Loading…
Reference in New Issue