Simplified comments

This commit is contained in:
Jonas Linter
2025-10-06 15:41:12 +02:00
parent c4fa774a86
commit 35531ff925

View File

@@ -846,27 +846,27 @@ def _process_single_reservation(reservation: Reservation, customer: Customer, me
if reservation.offer is not None:
offer_comment = CommentData(
name=CommentName2.ADDITIONAL_INFO,
text="Angebot/Offerta",
list_items=[
CommentListItemData(
value=reservation.offer,
language=customer.language,
list_item="1",
)
],
text="Angebot/Offerta: " + reservation.offer,
# list_items=[
# CommentListItemData(
# value=reservation.offer,
# language=customer.language,
# list_item="1",
# )
# ],
)
comment = None
if reservation.user_comment:
comment = CommentData(
name=CommentName2.CUSTOMER_COMMENT,
text=reservation.user_comment,
list_items=[
CommentListItemData(
value="Landing page comment",
language=customer.language,
list_item="1",
)
],
# list_items=[
# CommentListItemData(
# value="Landing page comment",
# language=customer.language,
# list_item="1",
# )
# ],
)
comments = [offer_comment, comment]