Guide 43 – Managing a restaurant or cafeteria |
9/22/2022 4:15:50 PM |
PHPRunner Tips and Tricks | |
![]() This example is the management of orders/orders that can be made in a restaurant or cafeteria and it is very basic. It is only intended to show some of the functionality of PHPRunner . I have done it as a sample or base for some of the people who have requested my help. Goal Use the functionality of "panels" that PHPRunner has incorporated and ease of interface of this type of applications, with the use of buttons for the most part, with the aim of facilitating its use on mobile. DEMO: https://fhumanes.com/restaurant/ Users: admin / admin and waiter1 / waiter1 Technical Solution I have used version 10.7 of PHPRunner and I have defined this data model:
It's all in Spanish, but it's so simple that I hope it won't be a difficulty for those of you who don't use this language. In the data model you can see that through the “active” field you can hide or not the “table” and “product” records. The “table” goes through the following states: Unoccupied.- It is free and any customer can sit. The "order" or "invoice" also has several states: Unpaid.- It is created when it is reported that the "table" is occupied and remains open while the "table" is in use. It requires the following plugins that you can download from my page . switch The interface of the set of tables is this:
It shows all the tables with the icon that indicates that the table is free or occupied and if it is occupied, it shows the total amount of what has been reported in the registered orders. The application can work centrally, on a PC all the orders are registered or in a distributed way and each waiter registers the orders of each one of the tables. It also has the basic functionality of issuing the invoice document, although everything can be improved, it is clear that this section must be adjusted in its entirety.
As always, I leave you all the sources so that you can install them on your PC's. For any questions or what you need, you can contact me through my email fernandohumanes@gmail.com |
|