Sha256: ab4b4a41429ac3a2eb24c3b71de376647a7f302419df980c97840099dcaf68a0

Contents?: true

Size: 1.28 KB

Versions: 6

Compression:

Stored size: 1.28 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).html_safe if payment.requested_date.present? %></td>
          <td><%= format_date(payment.effective_date).html_safe if payment.effective_date.present? %></td>
          <td><%= humanized_money_with_symbol payment.amount_to_money %></td>
          <td><%= humanized_money_with_symbol payment.paid_amount_to_money %></td>
          <td></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

6 entries across 6 versions & 1 rubygems

Version Path
kaui-0.1.12 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.11 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.10 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.9 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.8 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.7 app/views/kaui/payments/_payments_table.html.erb