<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%> <% if donation.anonymous || donation.supporter.anonymous %> <% else %> <% end %> <% if donation.campaign && donation.campaign.published %> <% end %> <% if donation.event %> <% end %> <% if donation.recurring_donation %> <% end %> <% unless donation.nonprofit.ein.blank? %> <% end %> <% if donation.comment %> <% end %> <% if donation.designation %> <% end %> <% if donation.dedication %> <% end %> <% if charge %> <% end %>
<%= t('mailer.donations.donation_receipt') %>
<%= t('mailer.donations.donor_name') %>Anonymous<%= donation.supporter.name %>
<%= t('donation.amount') %> <%= print_currency(charge.try(:amount) || donation.amount, donation.nonprofit.currency_symbol) %>
<%= t('donation.date') %> <%= date_and_time(charge.try(:created_at) || donation.created_at, donation.nonprofit.timezone) %>
<%= t('donation.campaign') %> <%= donation.campaign.name %>
Event <%= donation.event.name %>
<%= t('donation.recurring_interval') %> Every <%= donation.recurring_donation.interval %> <%= donation.recurring_donation.time_unit %>
<%= t('donation.recurring_since') %> <%= simple_date donation.recurring_donation.created_at %>
<%= t('organization.name') %> <%= donation.nonprofit.name %>
Tax ID Number <%= donation.nonprofit.ein %>
<%= t('donation.comment') %> <%= donation.comment || 'None' %>
Designation <%= donation.designation || 'None' %>
Dedication <%= donation.dedication ? Format::Dedication.from_json(donation.dedication) : 'None' %>
<%= t('donation.payment_id') %> <%= GetData.chain(donation.payment, :id) %>