Sha256: ac3e98f875c46a92c01fcb63589b19b4278d959c6581166d023af48d0ec0adb2

Contents?: true

Size: 1.92 KB

Versions: 7

Compression:

Stored size: 1.92 KB

Contents

- content_for :preview_text do
  Your Daily Order Report of
  = @tix.organization.name.html_safe
  =l @tix.start_date, :format => :date
  = number_to_currency((@tix.total + @donations.total) / 100.0)

%h1
  Daily Total: #{number_to_currency((@tix.total + @donations.total) / 100.0)}
%h2
  #{@tix.organization.name}: #{l @tix.start_date, :format => :date}

- if ! @tix.rows.empty?
  %h3 Tickets: #{number_to_currency(@tix.total / 100.0)}
  %table.tabular-data{:cellspacing => "0"}
    %tr
      %th Order
      %th Total
      %th Customer
      %th.w200 Details
      %th Special Instructions
    - @tix.rows.each do |row|
      %tr
        %td.order-number= link_to row.id, order_url(id: row.id)
        %td.total= row.total
        %td= link_to row.person, person_url(id: row.person_id)
        %td.w200= row.ticket_details
        %td= row.special_instructions
- else
  %p There were no ticket orders placed.


- if ! @tix.exchange_rows.empty?
  %h3 Exchanges
  %table.tabular-data{:cellspacing => "0"}
    %tr
      %th Order
      %th Customer
      %th Details
    - @tix.exchange_rows.each do |row|
      %tr
        %td.order-number= link_to row.id, order_url(id: row.id)
        %td= link_to row.person, person_url(id: row.person_id)
        %td= row.ticket_details

- if ! @donations.rows.empty?
  %h3 Donations: #{number_to_currency(@donations.total / 100.0)}
  %table.tabular-data{:cellspacing => "0"}
    %tr
      %th Order
      %th Donation
      %th Customer
    - @donations.rows.each do |row|
      %tr
        %td.order-number= link_to row.id, order_url(id: row.id)
        %td.total= row.total
        %td= link_to row.person, person_url(id: row.person_id)
- elsif @tix.organization.has_kit?(:regular_donation)
  %p There were no donations made.

- content_for :footer do
  = render :partial => "fine_print"
  %p
    To turn off this daily email report,
    = link_to "edit your organization here.", edit_organization_url(@tix.organization)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.6 app/views/reports_mailer/daily.html.haml
artfully_ose-1.2.0.pre.5 app/views/reports_mailer/daily.html.haml
artfully_ose-1.2.0.pre.4 app/views/reports_mailer/daily.html.haml
artfully_ose-1.2.0.pre.3 app/views/reports_mailer/daily.html.haml
artfully_ose-1.2.0.pre.2 app/views/reports_mailer/daily.html.haml
artfully_ose-1.2.0.pre.1 app/views/reports_mailer/daily.html.haml
artfully_ose-1.2.0.pre app/views/reports_mailer/daily.html.haml