Hello,
does anybody know why when i click on the button request for RoomService in Home page does not do anything at all?
I have been stuck for 2 days and i cannot find the resolution by myself.
I attach my project.
Thanks
Hi,
The condition you are using when we click on request button in that aggregate you are getting is empty condition you don't have any booking related to that room no.
If you have booking with that room no than we will get data in that aggregate.
Please check your aggregate things:
Regards,
Rajat
You can assign all the values also.
Below i attached your core OML in that I have changes filter that was wrong.
You can try now.
Hi Adrián de la Vega,
In the above comment I added both the OML file and correct the code there is many mistake in your code.
Please debug your code and find out why and from where you are getting issue.
Many conditions are not proper in your code i changed that please check and let me know if any issue.
Hi Rajat.
I am very sorry but i don´t know what you have changed in my proyect to understand why the button does not work.
I used debugger but not able to find the error.
I also tried the 2 oml you send me and is not working also.
Can you please be more specific?
First you swap your this if condition that I highlighted in the below Image.
False will come at end and true branch will go below to the assign.
And second thing you need to change is in the core module you have to change filter like below i highlighted this should be the filter:
Hope this screenshot will help you!!
Thanks Rajat.
This works now, the only thing i need to do this for RoomService in HomePage:
"we will have a section to request a service to a Room. To request the room service, the hotel clerk / manager will be able to select a room, select the type of service that the customer wants and after the selection is made, the total price should appear. Then, the hotel clerk / manager should confirm the Request by clicking on a Button. "
Now the request works but i am not able to get the price from the service since in the proyect does not ask to add any prices to the services.
Do you have any idea how to handle the situation?
Thanks and very sorry to bother you
No issue, that amount you need to enter manually we don't have any attribute or any entry in DB for that.
From the screen you should enter that amount and save it in service room entity.
Hope you got the point!!
Thanks for your help :)
Glad to listen you got solution.
Your Welcome!!