Sha256: 8628c7c0619e50947476f405bdaf6ded71bd67446e308d53cc46e084f0cb7045

Contents?: true

Size: 1.69 KB

Versions: 27

Compression:

Stored size: 1.69 KB

Contents

<div class="page-header">
  <h3>Payments</h3>
</div>
<table class="table table-condensed table-striped data-table">
  <thead>
    <tr>
      <th>Requested date</th>
      <th>Effective date</th>
      <th>Total amount</th>
      <th>Paid amount</th>
      <th>Payment method</th>
      <th>External payment id / Secondary payment id</th>
      <th>Retry count</th>
      <th>Status</th>
    </tr>
  </thead>
  <tbody>
    <% if @payments.present? %>
      <% @payments.each do |payment| %>
        <tr>
          <td><%= format_date(payment.requested_date, @account.timezone).html_safe if payment.requested_date.present? %></td>
          <td><%= format_date(payment.effective_date, @account.timezone).html_safe if payment.effective_date.present? %></td>
          <td><%= humanized_money_with_symbol payment.amount_to_money %> (<%= payment.currency %>)</td>
          <td><%= humanized_money_with_symbol payment.paid_amount_to_money %> (<%= payment.currency %>)</td>
          <td><%= "#{@payment_methods[payment.payment_id].plugin_info.type} #{@payment_methods[payment.payment_id].plugin_info.cc_type} #{@payment_methods[payment.payment_id].plugin_info.cc_last4}" if @payment_methods.present? and @payment_methods[payment.payment_id].present? and @payment_methods[payment.payment_id].plugin_info.present? %></td>
          <td><%= payment.ext_first_payment_id_ref %> <%= " / " if payment.ext_second_payment_id_ref.present? %> <%= payment.ext_second_payment_id_ref %></td>
          <td><%= payment.retry_count %></td>
          <td><%= payment.status %> <%=  payment.gateway_error_code unless payment.status == 'SUCCESS' %> <%= payment.gateway_error_msg %></td>
        </tr>
      <% end %>
    <% end %>
  </tbody>
</table>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
kaui-0.6.6 app/views/kaui/payments/_payments_table.html.erb
kaui-0.6.5 app/views/kaui/payments/_payments_table.html.erb
kaui-0.6.4 app/views/kaui/payments/_payments_table.html.erb
kaui-0.6.3 app/views/kaui/payments/_payments_table.html.erb
kaui-0.6.2 app/views/kaui/payments/_payments_table.html.erb
kaui-0.6.1 app/views/kaui/payments/_payments_table.html.erb
kaui-0.6.0 app/views/kaui/payments/_payments_table.html.erb
kaui-0.5.3 app/views/kaui/payments/_payments_table.html.erb
kaui-0.5.2 app/views/kaui/payments/_payments_table.html.erb
kaui-0.5.1 app/views/kaui/payments/_payments_table.html.erb
kaui-0.5.0 app/views/kaui/payments/_payments_table.html.erb
kaui-0.4.9 app/views/kaui/payments/_payments_table.html.erb
kaui-0.4.8 app/views/kaui/payments/_payments_table.html.erb
kaui-0.4.7 app/views/kaui/payments/_payments_table.html.erb
kaui-0.4.6 app/views/kaui/payments/_payments_table.html.erb
kaui-0.4.5 app/views/kaui/payments/_payments_table.html.erb
kaui-0.4.4 app/views/kaui/payments/_payments_table.html.erb
kaui-0.4.3 app/views/kaui/payments/_payments_table.html.erb
kaui-0.4.2 app/views/kaui/payments/_payments_table.html.erb
kaui-0.4.1 app/views/kaui/payments/_payments_table.html.erb