Sha256: 43c47d2686bf4952c2e11e57f41f6dea8e753057d8944419c15a737d889d1ab3

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 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 %> (<%= payment.currency %>)</td>
          <td><%= humanized_money_with_symbol payment.paid_amount_to_money %> (<%= payment.currency %>)</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

5 entries across 5 versions & 1 rubygems

Version Path
kaui-0.1.18 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.17 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.16 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.15 app/views/kaui/payments/_payments_table.html.erb
kaui-0.1.14 app/views/kaui/payments/_payments_table.html.erb