|
|
@@ -12,14 +12,14 @@ user_data_service = DataServiceFactory.get_user_service()
|
|
|
def get_printer_url(location: Locations) -> str:
|
|
|
if DEVELOPMENT:
|
|
|
return "http://localhost:5005"
|
|
|
- if location == Locations.PIZZAS:
|
|
|
- return "http://localhost:6002"
|
|
|
- elif location == Locations.BURGUER:
|
|
|
- return "http://localhost:6004"
|
|
|
+ if location == Locations.BAR:
|
|
|
+ return "http://localhost:6010"
|
|
|
elif location == Locations.COCTELERY:
|
|
|
- return "http://localhost:6000"
|
|
|
+ return "http://localhost:6012"
|
|
|
+ elif location == Locations.PIZZAS:
|
|
|
+ return "http://localhost:6014"
|
|
|
else:
|
|
|
- return "http://localhost:6000"
|
|
|
+ return "http://localhost:6016"
|
|
|
|
|
|
def print_order(order: Order, location:Locations ):
|
|
|
"""Send order to printer"""
|