项目作者: Agnieszka1994

项目描述 :
🏪 Store Management System based on a concept of recording, refilling stock items, and placing orders by users.
高级语言: C++
项目地址: git://github.com/Agnieszka1994/StoreManagementSystem.git
创建时间: 2020-11-02T21:25:39Z
项目社区:https://github.com/Agnieszka1994/StoreManagementSystem

开源协议:

下载


Store management system

This project was created thanks to the SQLite ORM library and SQLite .

Store Management System is based on a concept of recording, refilling stock items, and placing orders by users. It operates on the SQLite database which is created when the program is first started.

Before stepping into the dealer’s menu a user has to pass through a login system to get access.

  1. 1. Log in
  2. 2. Create Account
  3. 0. Exit
  4. 2
  5. Please enter your name:
  6. Alice
  7. Account has been created!
  8. Your ID: 6
  9. Your login: Alice
  10. Password: frAQBc8W
  11. Press any key to continue . . .
  1. 1. Log in
  2. 2. Create Account
  3. 0. Exit
  4. 1
  5. Please enter your ID:
  6. 6
  7. Please enter your password:
  8. frAQBc8W
  9. Succesfully logged: 6 Alice

The user can place orders, display orders, check order status or delete his account. To purchase an item, the user has to provide the product’s name and quantity.

Place order option

  1. 1. Place Order
  2. 2. Check order
  3. 3. Display all orders
  4. 4. Delete account
  5. 0. Log out
  6. 1
  7. 4 products available in stock:
  8. ID NAME PRICE QUANTITY
  9. 1 strawberry 4.50 4923
  10. 2 orange 6.80 5878
  11. 3 blueberry 6.90 5346
  12. Please enter product ID:
  13. 1
  14. Enter quantity:
  15. 22
  16. Order: 1 created.
  17. Press any key to continue . . .

Admin account is created by default with user id 0 and password “ADMIN”.

  1. Please enter your ID:
  2. 0
  3. Please enter your password:
  4. ADMIN
  5. Succesfully logged: 0 ADMIN

Admin menu provide the following features:

  • Add products
  • Cancel order
  • Display all orders
  • Complete order
  • Display stock
  • Delete product from stock
  • Add or subtract qty from stock
  • Display Users Statistics
  • Log out

While adding items the admin has to provide product name and price. Refilling the stock is available under option Add or subtract qty from stock. Removing an item is too easy, he/she just has to provide product id. From the customer’s menu, the user can only purchase and view stocks.

Sample usage

Display all orders

  1. Order ID USER ID USER NAME PROD. NAME PROD. ID ORDER QTY UNIT PRICE TOTAL PRICE STATUS
  2. 1 1 Alice strawberry 1 55 4.50 247.50 completed
  3. 2 1 Agata orange 2 56 6.80 380.80 completed
  4. 3 1 Elon blueberry 3 666 6.90 4595.40 completed
  5. 4 2 Matt orange 2 66 6.80 448.80 completed
  6. 5 2 Eve strawberry 1 22 4.50 99.00 completed
  7. 6 2 Agnieszka strawberry 1 78 4.50 351.00 canceled
  8. 7 2 Agata blueberry 3 988 6.90 6817.20 completed
  9. 8 6 Alice strawberry 1 22 4.50 99.00 new
  10. Press any key to continue . . .

Display stock

  1. 4 products available in stock:
  2. ID NAME PRICE QUANTITY
  3. 1 strawberry 4.50 4923
  4. 2 orange 6.80 5878
  5. 3 blueberry 6.90 5346
  6. Press any key to continue . . .

Display Users Statistics - all users with total active orders

  1. Alice - total active orders: 1

Complete order - display only active orders - with status new

  1. Order ID USER ID USER NAME PROD. NAME PROD. ID ORDER QTY UNIT PRICE TOTAL PRICE STATUS
  2. 8 6 Alice truskawki 1 22 4.50 99.00 new
  3. Please enter order ID:
  4. 8
  5. Order ID: 8 is ready
  6. Order quantity: 22
  7. Qty remaining in stock: 4901
  8. Please confirm completion. Y/N
  9. y
  10. Order completed successfully!
  11. Press any key to continue . . .