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,7 +127,9 @@ 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)
available = false if etime_tp > booking.start_time
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