make new POS order non-delivery

This commit is contained in:
David Rodenkirchen 2026-05-01 12:15:18 +02:00
parent 285f9fa09f
commit 2d1f489790

View File

@ -62,7 +62,7 @@ class Cart(Component):
except KeyError: except KeyError:
items_with_amounts[item] = 1 items_with_amounts[item] = 1
try: try:
await self.session[CateringService].place_order(items_with_amounts, self.user_id) await self.session[CateringService].place_order(items_with_amounts, self.user_id, is_delivery=False)
except CateringError as catering_error: except CateringError as catering_error:
logger.error(catering_error) logger.error(catering_error)
if catering_error.error_type == CateringErrorType.INCLUDES_DISABLED_ITEM: if catering_error.error_type == CateringErrorType.INCLUDES_DISABLED_ITEM: