On Feb 1, 2010, at 7:57 PM, adrianb wrote:
I’m not sure what the best practice to set this up would be. Does
anyone know of an example app I could look at?
Thanks for your help - Greg.
Hi Greg and everybody,
Have you figured out a way to implement advanced rate changes? To
clarify what this is, let me give you an example.
Your question isn’t really a Rails question, but a good way to do this
would be to have a bookings model and an inventory model.
The rooms are ‘inventory’. Their selling price is in the inventory
model. Dynamic changes can take place to the inventory while retaining
previously booked room rates. .
The pricing model is linked to the inventory by date, or season, etc.
Rake tasks nightly could update the inventory based on objects in the
When a booking occurs you create a booking to lock-in the rate, and
eventually that booking turns into an invoice when the customer checks
You’re going to have to allow for the employee to make changes to the
booking rate (with manager approval, of course) in the event the
customer comes in and changes their room after a pricing event has
taken place. etc.
John Adams (@netik)
this email is: [ ] bloggable [ x ] ask first [ ] confidential