Improved set of escalation time.
This commit is contained in:
parent
37c77165ad
commit
be2d2fe4cf
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ returns
|
|||
self.update_time_escal_date = biz.time(pending_time, :minutes).after(update_time_escal_date)
|
||||
end
|
||||
end
|
||||
if (!escalation_time && update_time_escal_date) || update_time_escal_date < escalation_time
|
||||
if update_time_escal_date && ((!escalation_time && update_time_escal_date) || update_time_escal_date < escalation_time)
|
||||
self.escalation_time = update_time_escal_date
|
||||
end
|
||||
|
||||
|
@ -136,7 +136,7 @@ returns
|
|||
if close_time
|
||||
self.close_time_in_min = pending_minutes(created_at, close_time, biz, 'business_minutes')
|
||||
else
|
||||
if (!escalation_time && close_time_escal_date) || close_time_escal_date < escalation_time
|
||||
if close_time_escal_date && ((!escalation_time && close_time_escal_date) || close_time_escal_date < escalation_time)
|
||||
self.escalation_time = close_time_escal_date
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue