DinEz is an integrated system solution which aims to address certain aspects of restaurant management encountered during the daily operation of a restaurant in a digitalised way, including order taking, menu management and order statistics.
If you are well-versed with CLI and can type fast, DinEz can help to coordinate the various tasks and allow you to access all the necessary information in one application. The CLI is also more reliable and simpler to operate than a traditional GUI.
helpcreate menuedit menucreate orderview orderreceipt orderview menuview restaurantedit restaurantview performancebye11 installed on your computer.DinEz.jar from herecd into the folder in which you placed the DinEz.jar then use the command
java -jar DinEz.jar to run the program. Hello from DinEz
Enter restaurant name:
Fine Food
Enter address of restaurant:
Avenue 0
Enter user name:
Tom
Here are the list of available commands:
help: Shows all the commands that can be used.
create order -menu <menu_id>: Creates a new order using the specified menu.
view -order -all: Shows a brief summary of all the created orders.
view -order <order_id>: Shows all the contents of a specified order.
receipt -order <order_id>: shows the receipt of the specified order.
create menu: Creates a new menu.
edit -menu <menu_id>: Modify the specified menu's items in the menu interface.
view -menu <menu_id>: Shows all the contents of a specified menu.
view -menu -all: Shows a brief summary of all the created menus.
view performance: Enters the order statistics interface.
bye: Quits the program.
help then pressing
Enter will display the help menu.
Here are some example commands you can try:
help: Displays all the commands that can be usedcreate order -menu 1: Creates a new order which uses the menu of ID 1
and navigates to the order interface to perform sub-commandsview -menu -all: Shows a brief summary of all the created menusbye: Exits from the programhelp to check available commands at current interface.[!NOTE]
- All the spaces in the commands are for clarity and are optional to include in the actual command.
- Commands are case-insensitive.
- The
<angle-brackets>are used to denote the parameters that should be replaced with the actual user input.
Accepted formats examples:
create order -menu 1
create order-menu1
createorder-menu1
CREATE ORDER -MENU 1
Createorder -menu 1(Non-exhaustive list)
helpShows all the commands that can be used, including their format and their expected purpose.
Format: help
create menuCreates a new menu and goes to the menu interface to perform sub-commands. (Refer to Features for Menu interface for the sub-commands)
Format: create menu
edit menuEdits a menu by going to the menu interface to perform sub-commands. (Refer to Features for Menu interface for the sub-commands)
Format: edit -menu <menu_id>
<menu_id> is a number representing the menu ID.<menu_id> can be obtained from the view -menu -all command.Example of usage:
edit -menu 1
create orderNOTE: A menu has to be present before an order can be created. For a first-time user, a menu should be created first.
Creates a new order with a specified menu and goes to the order interface to perform sub-commands. (Refer to Features for Order interface for the sub-commands)
Format: create order -menu <menu_id>
<menu_id> is a number representing the menu ID. You can obtain this ID with the help of the view -menu -all
command.Example of usage:
create order -menu 1
create order -menu 23
view orderShows all the contents of a specified order, or shows a brief summary of all orders.
Format: view -order <order_id> and view -order -all
<order_id> is a unique number representing the order. This ID can be obtained from the
view -order -all command.Example of usage:
view -order -all
view -order 20240403022723
receipt orderShows the receipt of a specified order.
Format: receipt -order <order_id>
<order_id> is a unique number representing the order. This ID can be obtained from the
view -order -all command.Example of usage:
receipt -order 20240403022723
view menuShows all the contents of a specified menu, or shows the brief summary of all menus.
Format: view -menu <menu_id> and view -menu -all
<menu_id> is a unique number representing a selected menu.
This ID can be obtained from the view -menu -all command.Example of usage:
view -menu -all
view -menu 2
view restaurantShows the restaurant name and address currently in use.
Format: view restaurant
edit restaurantChanges the restaurant name and address.
Format: edit restaurant
view performanceEnters the order statistics interface where various statistics based on all completed orders can be viewed. (Refer to Features in statistics interface for the sub-commands)
Format: view performance
byeExits out of the program.
Format: bye
Data for restaurant information, orders, and menus are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.
Data for restaurant information, orders, and menus are saved automatically in 3 separate text files restaurant.txt,
orders.txt, and menus.txt. These 3 files are located in [JAR file location]/data/*.txt (where *.txt represents
the name of the data file). ONLY edit the data files directly if you are an advanced user.
[!CAUTION]
- If your changes to the data files make its format invalid, our application will discard the files that have been corrupted and start with the respective empty data files at the next run. Therefore, it is recommended to make a backup of your data files before editing it.
- Additionally, some edits can cause DinEz to behave in unexpected ways (e.g., if order ID is changed to a string, multiple orders have the same order ID, multiple menus have the same menu ID etc.). Hence, only edit the data files if you are confident that you can update it correctly.
helpShows all the commands that can be used in the menu interface.
Format: help
addAdds an item with specified ID, name, and price to the current menu.
Format: add -item <item_name> -price <price_of_item>
<item_name> should contain English alphabets and spaces only.<price_of_item> should be the price of the item without the $ symbol between 0 and 10000 (both exclusive).Example of usage:
add -item Chicken Rice -price 3.50
add -item Seafood Fried Rice -price 5
deleteDeletes an item of a specified ID from the current menu.
Format: delete -item <item_id>
<item_id> is a number representing the menu item. You can obtain this ID with the help of the view items
command.Example of usage:
delete -item 1
view itemsShows all the items in the current menu.
Format: view items
completeMarks the current menu as completed and returns to the main interface.
Format: complete
complete command cannot be used on an empty menu. You will be prompted to add items to the menu.cancelCancels the current menu’s creation and returns to the main interface.
Format: cancel
helpShows all the commands that can be used in the order interface.
Format: help
addAdds a specified quantity of a specific menu item into the order.
Format: ` add -item
<item_id> is a unique number that identifies the item. You can obtain this ID using the view menu command.<quantity_of_item> is a number representing the amount of the specified item to addExample of usage:
add -item 1 -quantity 2
deleteDeletes a specified quantity of a specified item in the order.
Format: delete -item <item_id> -quantity <quantity_of_item>
<item_id> is a number representing the menu item. You can obtain this ID with the help of the view menu
command.Example of usage:
delete -item 1 -quantity 1
view menuShows the menu used by the current order.
Format: view menu
view itemsShows all the items in the current order.
Format: view items
completeMarks the current order as completed and returns to the main interface.
Format: complete or complete -discount <discount>
complete command cannot be used on an empty order. You will be prompted to add items to the order.<discount> is a number representing the discount percentage. It should be an integer without the %
symbol, ranging from 0 to 99.cancelCancels the current order’s creation and returns to the main interface.
Format: cancel
bestsellingShows the best-selling item(s) in the restaurant of all time. The best-selling item is defined as the item with the highest quantity sold. If there are multiple items with the same highest quantity sold, up to 3 of the best-selling items will be displayed (based on the natural order of their Id).
Format: bestselling
total ordersShows the total number of orders that have been created.
Format: total orders
revenueShows the gross revenue of the restaurant. (i.e. total revenue before deducting costs and taxes), or shows the net revenue of the restaurant. (i.e. total revenue after deducting taxes)
Format: revenue -gross or revenue -net
view profitShows the profit based on the operating costs in the restaurant as provided by the user.
(i.e. total revenue after deducting costs and taxes)
The cost here is intended as the total cost of operations, which can include
production, rental and supply costs.
Format: view profit -cost <cost>
<cost> is the money spent on preparing the items.$ symbol.Example of usage:
view profit -cost 150
view profit -cost 20000
quitReturns to the main interface from the statistics interface.
Format: quit
Q: How do I save restaurant information, as well as the menus and orders I have created?
A: Data for restaurant information, orders, and menus are saved in the hard disk automatically after any command
that changes the data. There is no need to save manually. The data files are stored in the data directory, which is
located in the same directory where you put the DinEz.jar file.
Q: How many menus can I have?
A: Just like the orders, there is no limit to the number of menus that can be created. The goal of this system is to be able to allow the user to create multiple menus from which items for the order can be chosen from.
Q What happens if I try to add similar items to the menu?
A: This is not allowed. The item name and ID are unique in each menu.
Q: Can I delete an order that I have entered?
A: No, once an order has been created, it cannot be deleted. This is to ensure that the order history is preserved as they are important for the restaurant’s records.
Q: Can I edit an order that I have entered?
A: To preserve the integrity of the generated orders, we do not offer a feature to edit orders that have been entered. A confirmation message is hence present for the user to verify that their inputs are correct.
Q: What is the difference between net revenue and profit?
A: As mentioned in the user guide for those features, the difference between net revenue and profit is that the former includes costs of production, but the latter excludes it.
helpview -menu <menu_id> and view -menu -allcreate menu «Menu Interface»edit -menu <menu_id> «Menu Interface»view -order <order_id> and view -order -allcreate order -menu <menu_id>«Order Interface»receipt -order <order_id>view restaurantedit restaurantview performance«Statistics interface»byeadd -item <item_name> -price <price_of_item>delete -item <item_id>view itemscompletecancel add -item <item_id> -quantity <quantity_of_item>delete -item <item_id> -quantity <quantity_of_item>view menuview itemscomplete or complete -discount <discount>cancelbestsellingtotal ordersrevenue -grossrevenue -netview profit -cost <cost>quit