<% @fund_counter ||= 0 -%> <% if @fund_counter % 2 == 0 -%> <% else -%> <% end -%> <%= purchase.comment -%> <%= purchase.name -%> <%= display_date purchase.post_date -%> <%= display_amount purchase.debit_amount -%> <%= display_amount purchase.credit_amount -%> <% @fund_counter += 1 -%>