Sha256: 78e20b307703f083f622ea76f8e3663d87c10a282f7c46b471104005f1ba074a

Contents?: true

Size: 1.49 KB

Versions: 18

Compression:

Stored size: 1.49 KB

Contents

Order confirmation

="Thank you for your order, #{@person}!"

- unless @order.tickets.empty?
  ="This is not a ticket. Please use your order number to check in at the event"

= "Order number: #{@order.id}"
= "Purchase Date: #{l(@order.created_at_local_to_organization)}"
= "Order total: $#{format("%.2f", (@order.total/100.0))}"
= "Payment method: #{@order.payment_method}"
= "Service fee: $#{format("%.2f", (@order.service_fee.to_i/100.0))}"

="==================="

- unless @order.tickets.empty?
  Tickets
  - @order.ticket_summary.rows.each do |row|
    ="#{row.show.event.name}"
    =l row.show.datetime_local_to_event
    -unless row.show.event.contact_email.blank?
      ="Event contact email: #{row.show.event.contact_email}"
    -unless row.show.event.contact_phone.blank?
      ="Event contact phone: #{row.show.event.contact_phone}"

    ="#{row.show.event.venue.name}"
    -unless row.show.event.venue.street_as_string.blank?
      ="#{row.show.event.venue.street_as_string}" 
    -unless row.show.event.venue.city_state_zip_as_string.blank?  
      ="#{row.show.event.venue.city_state_zip_as_string}"    

    -row.ticket_type_hash.keys.each do |ticket_type|
      -ticket_type.tickets.each do |ticket|
        = "#{ticket.ticket_type.name}: $#{format("%.2f", (ticket.sold_price/100.0))}"
      =ticket_type.description



- unless @order.donations.empty?
  Donations
  - @order.donations.each do |item|
    = "$#{format("%.2f", (item.price/100.00))}:"
    = "Donation to #{@order.organization.name_for_donations}"

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
artfully_ose-1.2.0 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.beta.1 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.alpha.2 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.alpha.1 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.27 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.26 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.24 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.23 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.21 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.20 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.19 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.18 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.17 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.16 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.15 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.12 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.11 app/views/order_mailer/confirmation_for.text.haml
artfully_ose-1.2.0.pre.10 app/views/order_mailer/confirmation_for.text.haml