Sha256: daff88d3fc173f893ce50bd07a03a0143dec6657a1d74adee334b069b899f8f5
Contents?: true
Size: 1.89 KB
Versions: 11
Compression:
Stored size: 1.89 KB
Contents
<div class="page-header"> <h3>Payments</h3> </div> <table class="table table-condensed table-striped data-table"> <thead> <tr> <th>Effective date</th> <th>Transaction type</th> <th>Amount</th> <th>Payment method</th> <th>First / Second reference id</th> <th>Status</th> <th>Gateway message</th> </tr> </thead> <tbody> <% if @payments.present? %> <% @payments.each do |payment| %> <% payment.transactions.each do |transaction| %> <tr> <td><%= format_date(transaction.effective_date, @account.time_zone).html_safe if transaction.effective_date.present? %></td> <td><%= transaction.transaction_type %></td> <td><% if transaction.amount.present? %><%= humanized_money_with_symbol Kaui::Transaction.amount_to_money(transaction) %> (<%= transaction.currency %>)<% end %> </td> <td><%= link_to truncate_uuid(@payment_methods[transaction.payment_id].payment_method_id), kaui_engine.payment_method_path(@payment_methods[transaction.payment_id].payment_method_id) if @payment_methods.present? and @payment_methods[transaction.payment_id].present? %></td> <td><%= transaction.first_payment_reference_id %> <%= " / " if transaction.second_payment_reference_id.present? %> <%= transaction.second_payment_reference_id %></td> <td> <span <% if transaction.status != 'SUCCESS' %>class='alert-error' <% else %>class='alert-success' <% end %>> <%= transaction.status %> <%= transaction.gateway_error_code unless transaction.status == 'SUCCESS' %> <%= transaction.gateway_error_msg %> </span> </td> <td><%= transaction.gateway_error_msg %></td> </tr> <% end %> <% end %> <% end %> </tbody> </table>
Version data entries
11 entries across 11 versions & 1 rubygems