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

View File

@ -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>