%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%> <%= content_for :stylesheets do %> <%= stylesheet_link_tag 'nonprofits/payouts/index/page' %> <% end %> <% content_for(:footer_hidden) {'hidden'} %> <%= content_for :javascripts do %> <%= javascript_pack_tag 'i18n', 'page__nonprofits__payouts__index' %> <% end %> <%= render 'nonprofits/transaction_title', active: :payouts, icon_class: 'icon-bank-1', page_name: 'Payouts' %>
Your connected bank account is <%= @nonprofit.bank_account && @nonprofit.bank_account.name %>. Change Bank Account
<% elsif current_role?(:nonprofit_admin) %> <%= render 'todos' %> <% end %> <% if @payouts.empty? %>No payouts have been made yet.
<% else %>Date | Net Amount | Bank account | Status | |
---|---|---|---|---|
<%= simple_date(payout.created_at) %> | <%= print_currency(payout.net_amount, payout.nonprofit.currency_symbol) %> | <%= payout.bank_name %> |
<% if payout.status == 'paid' || payout.status == 'succeeded' %>
Succeeded
<% elsif payout.status == 'pending' %>
Pending
<% elsif payout.status == 'failed' %>
Failed <% unless payout.failure_message.blank? %> Message received: <%= payout.failure_message %> <% end %> <% end %> |
Payout report (CSV) |