PayPal CSV Records

<%= link_to "Upload CSV", new_paypal_csv_path %>

<% @paypal_csvs.sort_by(&:date_parsed).reverse!.each do |paypal_csv| %> <% end %>
Date Name Item Amount
<%= paypal_csv.date %> <%= paypal_csv._name %> <%= paypal_csv._item_title %> <% if paypal_csv._gross.blank? %> <%= paypal_csv._type %> <% else %> <%= paypal_csv._gross %> <% end %> <% if paypal_csv.payment.present? %> <%= link_to "Linked Payment", paypal_csv.payment %> <% else %> <%= link_to "Try to link email '#{paypal_csv._from_email_address}' at membership level '#{paypal_csv._gross.to_i}'", link_paypal_csv_path(paypal_csv) %> <% end %> <%= link_to "Details", paypal_csv %>