52 lines
1.0 KiB
Plaintext
Raw Normal View History

2013-02-12 01:58:17 -07:00
<p>
<b>User:</b>
2013-08-24 03:40:34 -07:00
<%= link_to @payment.user.name_with_payee_and_member_level, @payment.user unless @payment.user.blank? %>
2013-02-12 01:58:17 -07:00
</p>
<p>
<b>Paid for month beginning:</b>
<%= @payment.date %>
</p>
2013-08-24 02:18:37 -07:00
<p>
<b>Amount:</b>
<%= @payment.amount %>
</p>
2013-02-12 01:58:17 -07:00
<p>
<b>Last Modified by:</b>
2013-08-24 02:18:37 -07:00
<% user = @users.find{|u| u.id == @payment.created_by} %>
<% if user.blank? %>
n/a
<% else %>
<%= link_to user.name, user %>
<% end %>
2013-02-12 01:58:17 -07:00
</p>
<p>
<b>Created date:</b>
<%= @payment.created_at %>
</p>
<p>
<b>Updated date:</b>
<%= @payment.updated_at %>
</p>
2013-08-24 02:18:37 -07:00
<% if @payment.ipn.present? %>
<p>
2013-08-28 05:15:50 -07:00
<%= link_to "Paid via PayPal (IPN)", @payment.ipn %>
</p>
<% end %>
<% if @payment.paypal_csv.present? %>
<p>
<%= link_to "Paid via PayPal (CSV)", @payment.paypal_csv %>
2013-08-24 02:18:37 -07:00
</p>
<% end %>
2013-02-12 01:58:17 -07:00
<%= link_to 'Edit', edit_payment_path(@payment) %> |
<%= link_to 'Destroy', @payment, :confirm => 'Are you sure you want to destroy this payment?', :method => :delete if can? :destroy, @payment %> |
<%= link_to 'Back', payments_path %>