First capstone project
Cuppa Joe Coffee shop
Written in python for Cuppa Joe
Files used:
- main.py - This is the main POS system for Cuppa Joe
- Functionality includes
- ordering an item from the menu using a number or a letter
- redisplaying the menu - menu
- adding items to the menu (hidden) - add
- Functionality includes
- products.py
- This file simply defines our product object with the following properties: name, category, description, price
- payments.py
- provides user with total cost of items selected
- asks for payment type
- displays receipt after selecting payment type
- validator.py
- This file contains validator object which performs various validation.
- validating payment type
- This file contains validator object which performs various validation.
Future enhancements:
- For cash sales, validate that the amount paid is enough to cover the order
- Validate that the credit card number is 16 digits long
- Validate that the credit card expiration date is entered in proper format
- Also confirm that the card is not expired
- If the subtotal is zero, skip payment options
- Add validate_float to validator
- Add validat_cash for cash payments
- Allow repricing of an existing product
- Allow split payments
- Allow removing an item
- On the receipr - display only the last 4 digits of the card.
Bug fixes:
customer_order[] list is not getting reset when starting a new order.