Improved set of escalation time.

This commit is contained in:
Martin Edenhofer 2015-09-13 20:01:18 +02:00
parent 37c77165ad
commit be2d2fe4cf

View file

@ -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