comment out old func. testing
This commit is contained in:
parent
dd06598f30
commit
daa518794d
1 changed files with 14 additions and 14 deletions
28
main.py
28
main.py
|
@ -83,24 +83,24 @@ def prod_by_barcode(barcode):
|
|||
|
||||
|
||||
|
||||
def main():
|
||||
# Get product
|
||||
prod = prod_by_barcode(BARCODE)
|
||||
# print(prod)
|
||||
# It would be good to check if the product is available here. In such case, throw some error and prompt for user action (write it on paper and report to staff)
|
||||
# def main():
|
||||
# # Get product
|
||||
# prod = prod_by_barcode(BARCODE)
|
||||
# # print(prod)
|
||||
# # It would be good to check if the product is available here. In such case, throw some error and prompt for user action (write it on paper and report to staff)
|
||||
|
||||
# Find user
|
||||
user = user_by_barid(USER_BAR_ID)
|
||||
# print(user)
|
||||
# # Find user
|
||||
# user = user_by_barid(USER_BAR_ID)
|
||||
# # print(user)
|
||||
|
||||
# Consume product
|
||||
prod_consume(prod)
|
||||
# # Consume product
|
||||
# prod_consume(prod)
|
||||
|
||||
# Bill product to user
|
||||
#prod_bill_user(prod, user)
|
||||
# # Bill product to user
|
||||
# #prod_bill_user(prod, user)
|
||||
|
||||
# Bill product with cash
|
||||
prod_bill_cash(prod)
|
||||
# # Bill product with cash
|
||||
# prod_bill_cash(prod)
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
|
|
Loading…
Reference in a new issue