Sort member contributions by payment date

main
Hugo Peixoto 3 months ago
parent c45beb877e
commit a1be74ed2d
  1. 2
      app/views/members/show.html.erb

@ -33,7 +33,7 @@
<th><%= t('contributions.attributes.payment_reference') %></th>
<th><%= t('contributions.attributes.amount') %></th>
</tr>
<% @member.contributions.each do |contribution| %>
<% @member.contributions.order(payment_on: :asc).each do |contribution| %>
<tr>
<td><%= contribution.payment_on %></td>
<td><%= contribution.payment_method %></td>

Loading…
Cancel
Save