added feature on new orderGet refresh orders list fixed bug if i order something from desk 2 as first after db entry 2 desk dont show its ordered items only if i add in desk 1 (querys.py)
This commit is contained in:
parent
a95e8a00b8
commit
35f20e4f63
10 changed files with 103 additions and 33 deletions
|
|
@ -126,11 +126,10 @@ class get:
|
|||
def all_orders():
|
||||
# All unfinished orders (finished is False or string "False")
|
||||
result = []
|
||||
desk = 1
|
||||
orders = session.query(Order).filter(Order.finished == 0).all()
|
||||
session.commit()
|
||||
for order in orders:
|
||||
products = session.query(Product).filter(Product.order_id == order.id , Order.desk_number == desk).all()
|
||||
products = session.query(Product).filter(Product.order_id == order.id).all()
|
||||
session.commit()
|
||||
list_products = []
|
||||
for p in products:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue