mcscapstone / MCSCapstone

Melbourne Consulting Suites - Swinburne University Capstone Project.
0 stars 1 forks source link

Recurring Bookings logic? #18

Open samtimmins opened 8 years ago

samtimmins commented 8 years ago

When creating a recurring booking, it fills the booking slot in both chronological directions. Basically: A recurring booking configured for the 26/10/16 applies every week possible, in the past and future! So 19/10/16, 12/10/16 etc. This would mean that a customers invoice is wrong.

Also: Deleting a recurring booking entry removes ALL traces of that booking have existed. It removes current week/future week and past week entries.

I imagine this all has to do with the booking logic and not having proper controls for what the current date is?

kierhickey commented 8 years ago

15 two birds with one stone

kierhickey commented 8 years ago

As you can see from the table, the database stores recurring bookings by week/day values rather than specific date values, this increases the difficulty of fixing this bug.

booking_idschool_idperiod_idweek_idday_numroom_iduser_iddatenotescancelledpaid
11116 1 1 NULL00
212 NULLNULL 1 1 2016-10-3000
31111 1 2 NULL00
41211 1 2 NULL00