Class: Ticket::Reports::Sales
- Inherits:
-
Base
- Object
- Base
- Ticket::Reports::Sales
show all
- Defined in:
- app/models/ticket/reports.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, reporting_methods
Instance Method Details
#advance ⇒ Object
88
89
90
|
# File 'app/models/ticket/reports.rb', line 88
def advance
tickets.sold.unplayed.sum(:sold_price)
end
|
#played ⇒ Object
84
85
86
|
# File 'app/models/ticket/reports.rb', line 84
def played
tickets.sold.played.sum(:sold_price)
end
|
#today ⇒ Object
80
81
82
|
# File 'app/models/ticket/reports.rb', line 80
def today
tickets.sold_after(Time.now.beginning_of_day).sum(:sold_price)
end
|
#total ⇒ Object
76
77
78
|
# File 'app/models/ticket/reports.rb', line 76
def total
tickets.sold.sum(:sold_price)
end
|