Browse Source

fix: beers bug

latapp 9 tháng trước cách đây
mục cha
commit
4323fc1cb3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      routes/orders.py

+ 1 - 1
routes/orders.py

@@ -226,7 +226,7 @@ async def printer_order(order: OrderWeb, current_user: User = Depends(get_curren
                     )
                 #en caso contrario
                 else:
-                    if product.type == "Cerveza":
+                    if product.type == "Cervezas":
                         beers_for_promo += item.quantity
                         logger.debug(f"Added {item.quantity} beers for promotion calculation")