Class: DailyTicketReport::ExchangeRow
- Includes:
- ActionView::Helpers::TextHelper
- Defined in:
- app/models/daily_ticket_report.rb
Instance Attribute Summary
Attributes inherited from Row
#id, #order, #person, #person_id, #special_instructions, #ticket_details, #total
Instance Method Summary collapse
Methods inherited from Row
#create_ticket_details, #initialize, #to_a
Constructor Details
This class inherits a constructor from DailyTicketReport::Row
Instance Method Details
#calculate_total ⇒ Object
67 68 69 |
# File 'app/models/daily_ticket_report.rb', line 67 def calculate_total DailyTicketReport.number_to_currency(@order.tickets.find_all(&:exchanged?).sum(&:price).to_f/100) end |