fix error
This commit is contained in:
parent
8342a17aca
commit
b8c0ff2bd5
|
@ -127,8 +127,10 @@ class Property
|
||||||
edata = etime_tp
|
edata = etime_tp
|
||||||
end
|
end
|
||||||
if (sdata <= b_sdata && edata >= b_sdata) || (sdata >= b_sdata && edata <= b_edata) || (sdata <= b_edata && edata >= b_edata)
|
if (sdata <= b_sdata && edata >= b_sdata) || (sdata >= b_sdata && edata <= b_edata) || (sdata <= b_edata && edata >= b_edata)
|
||||||
|
if etime_tp > booking.start_time
|
||||||
available = false
|
available = false
|
||||||
end
|
end
|
||||||
|
end
|
||||||
stime_tp = stime_tp + d_step
|
stime_tp = stime_tp + d_step
|
||||||
etime_tp = etime_tp + d_step
|
etime_tp = etime_tp + d_step
|
||||||
break if recurring_end_date.nil? || recurring_end_date < stime_tp
|
break if recurring_end_date.nil? || recurring_end_date < stime_tp
|
||||||
|
|
Loading…
Reference in New Issue