How abdullahahmeddev-99/restaurant-management-system works
This is a Qt desktop restaurant-management app. Staff browse configurable meals, build and edit a cart, enter customer/order details, validate stock, complete cash/card-with-simulated-OTP/wallet checkout, and view an invoice or sales dashboard. The GUI shares in-memory restaurant and order state with a UI-independent core for meal offers, totals, inventory, validation, payment, and sales. Edges reflect README statements and shown references/calls; unsampled dialog and dashboard wiring is represented only where documented.
Main entry points: new_order_view.cpp Order editor · main_window.cpp Main window · menu_view.cpp Menu browser · sales_manager.cpp Payment and sales totals
Components 16
Qt user interface
- Main window
gui/main_window.cpp - Menu browser
gui/menu_view.cpp - Meal configurators
gui/dialogs - Quantity spin control
gui/dialogs/quantity_spin_box.cpp
Ordering and checkout
- Order editor
gui/new_order_view.cpp - Payment dialog
gui/dialogs/payment_dialog.cpp - Card details
gui/dialogs/card_details_dialog.cpp - OTP simulation
gui/dialogs/otp_verification_dialog.cpp
Business logic
- Order and restaurant state
core/models.h - Customer validation
core/validation.cpp - Meal offers and pricing
core/meal_logic.cpp - Cart and inventory
core/order_manager.cpp
Sales and records
- Invoice preview
gui/dialogs/invoice_dialog.cpp - Sales dashboard
gui/sales_view.cpp - Payment and sales totals
core/sales_manager.cpp
Other components
- Restaurant staff
Connections 23
- Restaurant staff → Main window: uses
README.md - Main window → Menu browser: navigates
- Main window → Order editor: navigates
- Main window → Sales dashboard: navigates
- Menu browser → Meal configurators: opens
gui/menu_view.cpp - Menu browser → Meal offers and pricing: adds meals
gui/menu_view.cpp - Menu browser → Cart and inventory: calculates
gui/menu_view.cpp - Meal configurators → Quantity spin control: uses
gui/dialogs/burger_dialog.cpp - Meal offers and pricing → Cart and inventory: delegates to
- Order editor → Customer validation: validates
gui/new_order_view.cpp - Order editor → Cart and inventory: edits cart
gui/new_order_view.cpp - Order editor → Payment dialog: opens
gui/new_order_view.cpp - Order editor → Invoice preview: prepares preview
gui/new_order_view.cpp - Payment dialog → Card details: opens
gui/dialogs/payment_dialog.cpp - Payment dialog → OTP simulation: verifies
README.md - Payment dialog → Payment and sales totals: processes payment
README.md - Payment and sales totals → Cart and inventory: checks and deducts stock
core/sales_manager.cpp - Sales dashboard → Payment and sales totals: shows sales
- Invoice preview → Payment and sales totals: uses sales data
gui/dialogs/invoice_dialog.cpp - Main window → Order and restaurant state: owns shared state
- Menu browser → Order and restaurant state: reads and updates
- Order editor → Order and restaurant state: reads and updates
- Payment and sales totals → Order and restaurant state: updates totals
core/sales_manager.cpp