A simple and efficient billing system designed for small to medium-sized businesses. Built with C++ and the Qt framework, it provides a user-friendly interface for managing products and processing sales.
- C++17: The core application logic is written in modern C++.
- Qt Framework (6 or 5): For the graphical user interface (GUI).
- Modules: QtWidgets, QtGui, QtCore, QtSql.
- SQLite: For the database to store products, sales, and admin information.
- QSS (Qt Style Sheets): For custom styling of the application.
- Add, Update, and Delete Products: Easily manage your product catalog.
- Automatic Stock Control: Stock levels are automatically decremented after each sale.
- Stock Overview: View all product stock levels from the admin panel.
- Streamlined Cart: A simple process to add products to a shopping cart.
- Autocomplete Search: Quickly find products by name with a search-as-you-type feature.
- Automatic Bill Generation: Calculate totals (including tax) and generate a bill on checkout.
- Cart Management: Easily remove individual items or clear the entire cart.
- Secure Admin Panel: Access to administrative functions is protected by a robust login system.
- Admin User Management: Create and delete administrator accounts directly from the admin panel.
- Full Database Reset: A powerful option to clear all transactional and product data for a fresh start.
- A C++ compiler (like GCC or Clang).
- Qt 6 or Qt 5 (including the
QtWidgets,QtSqlmodules). - SQLite 3 library.
-
Clone the repository:
git clone https://github.com/Nivedck/Billing-System.git cd Billing-System -
Using Qt Creator (Recommended):
- Open the
Billing-System.profile in Qt Creator. - Configure the project with your Qt kit.
- Build and run the project.
- Open the
-
Using the Command Line:
qmake make ./Billing-System
- Click the "Admin Panel" button on the main window.
- Login: Enter your admin username and password. The default credentials for the first run are
username: admin,password: admin. - Once logged in, you can:
- Manage Products: Add, update, or delete products.
- Manage Admins: Add or delete other admin users.
- Clear Database: Reset all application data.
- Add to Cart:
- Start typing a product name and use the autocomplete suggestions.
- Enter the quantity and click "Add to Cart".
- Manage Cart:
- Select items in the cart to remove them individually.
- Click "Clear Cart" to empty it.
- Checkout:
- Click "Checkout" to finalize the sale and generate a bill.
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
