fix error

This commit is contained in:
chiu 2020-05-21 20:15:10 +08:00
parent 8342a17aca
commit b8c0ff2bd5
1 changed files with 3 additions and 1 deletions

View File

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