-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[14.0] new module pms_ website_sale : online booking #237
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[IMP] pms_website_sale: Show a very basic list of room types Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be> [IMP] pms_website_sale: Filter improvements Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be> [IMP] pms_website_sale: Images Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be> [REF] pms_website_sale: Use booking engine in controller Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be> [IMP] pms_website_sale: Page for room types Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be> [IMP] pms_website_sale: Load /room page when not logged in During this work, I also realised that pms.room.type is a product, so I incorporated that design, which required some subsequent refactoring. Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be> [IMP] pms_website_sale: Add important comment Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
Input are now required, to avoid user entering only one date an not the other. A button has been added to reset the date search.
This commit contains a refactor of the BookingEngineParser.
- Use SESSION_KEY when saving data into session - Discussion about the add_room_request() method and other method - Catch error when casting values from the formular
Errors can now be shown in the log file and properly to the user. On the /rooms page and /booking page
Using URLLookup `model()` does not work for public user as public user has no specific rights on any object. Another way to solve it is to give read rights for pblic user. But that seams dangerous to me as any request made on the website is performed by public user.
Using `price_total` from the `availability_result` does not work as by default in the booking.engine wizard the number of selected rooms (`num_room_selected`) is equal to zero. Therefor the `price_total` is null. To solve that we set the amount of room selected to 1 for each rooms available. As the booking.engine for the rooms page is not stored this is a temporary value that will not be used for booking.
Using route `/rooms` conflict with other pms modules. Now routes for booking online are prefixed `/ebooking`.
When testing to create a folio from an empty parser, the creation of the partner fails because no partner data are present in the parser. This fixes the tests, but it lead to issue in the case when the user bypass the address formular in the booking process.
robinkeunen
force-pushed
the
14.0-pms_website_sale
branch
from
November 2, 2023 16:11
893ed21
to
bd24457
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there,
This is a work in progress on pms_website_sale. The aim of this module is to allow online booking for visitors.
The booking process has 6 steps
/ebooking/rooms
: date and room type selection/ebooking/booking
: summary of the booking/ebooking/booking/extra_info
: extra information from the customer/ebooking/booking/address
: address and invoicing information/ebooking/booking/payment
: payment page, uses installed and allowed payment acquirers/ebooking/booking/success
: success / failure pageThe ebooking controller uses the booking engine to display availabilities and price.
A few things left to do
website
, if possibleThis is a MVP at this stage, we're submitting it to our customer. Feedbacks are welcome.