Explorar o código

fix: beers bug

latapp hai 9 meses
pai
achega
4323fc1cb3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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")