Skip to content

Commit

Permalink
T1798 FIX ticket choosing
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Sep 5, 2024
1 parent d754b5a commit 5e07c85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website_event_compassion/models/event_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,11 +624,11 @@ def create_trip_invoice(self):
if len(travel_ticket) > 1:
# Take the price set at the date of registration
travel_ticket = travel_ticket.filtered(
lambda t, reg=registration: t.start_sale_date
or reg.create_date.date()
lambda t, reg=registration: (
t.start_sale_date or reg.create_date.date()
)
<= reg.create_date.date()
<= t.end_sale_date
or reg.create_date.date()
<= (t.end_sale_date or reg.create_date.date())
)[:1]
room_ticket = registration.event_id.event_ticket_ids.filtered(
lambda t: t.product_id.product_tmpl_id == single_room_cost
Expand Down

0 comments on commit 5e07c85

Please sign in to comment.