mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
fix statistic generation for events with custom prices
This commit is contained in:
parent
ea73b9a88b
commit
4c9879768b
@ -209,7 +209,7 @@ class StatisticService
|
||||
event_date: slot.start_at.to_date,
|
||||
event_theme: (r.reservable.event_themes.first ? r.reservable.event_themes.first.name : ''),
|
||||
age_range: (r.reservable.age_range_id ? r.reservable.age_range.name : ''),
|
||||
nb_places: r.nb_reserve_places + (r.tickets.map(&:booked).map(&:to_i).reduce(:+) || 0),
|
||||
nb_places: r.total_booked_seats,
|
||||
nb_hours: difference_in_hours(slot.start_at, slot.end_at),
|
||||
ca: calcul_ca(r.invoice)
|
||||
}.merge(user_info(u))) if r.reservable
|
||||
|
Loading…
x
Reference in New Issue
Block a user