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