Sort member contributions by payment date

This commit is contained in:
Hugo Peixoto 2023-03-19 15:38:19 +00:00
parent c45beb877e
commit a1be74ed2d
1 changed files with 1 additions and 1 deletions

View File

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