Class: DailyTicketReport::ExchangeRow

Inherits:
Row
  • Object
show all
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_totalObject



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