mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
statistics generation for event with custom prices
This commit is contained in:
parent
d86cccf98c
commit
d47a5aea5f
@ -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.nb_reserve_reduced_places,
|
||||
nb_places: r.nb_reserve_places + (r.tickets.map(&:booked).map(&:to_i).reduce(:+) || 0),
|
||||
nb_hours: difference_in_hours(slot.start_at, slot.end_at),
|
||||
ca: calcul_ca(r.invoice)
|
||||
}.merge(user_info(u))) if r.reservable
|
||||
|
@ -70,7 +70,7 @@ en:
|
||||
cancellation_of_invoice_REF: "Cancellation of invoice %{REF}"
|
||||
reservation_of_USER_on_DATE_at_TIME: "Reservation of %{USER} on %{DATE} at %{TIME}"
|
||||
cancellation: "Cancellation"
|
||||
object: "Object:"COUNT
|
||||
object: "Object:"
|
||||
order_summary: "Order summary:"
|
||||
details: "Details"
|
||||
amount: "Amount"
|
||||
|
Loading…
x
Reference in New Issue
Block a user