Requested Date | Effective Date | Bundle Name | Event Type | Details | Reason Code / Comments | Actions |
---|---|---|---|---|---|---|
<% if invoice.invoice_dt.present? %> <%= invoice.invoice_dt %> <% else %> [unknown] <% end %> | <% if invoice.target_dt.present? %> <%= invoice.target_dt %> <% else %> [unknown] <% end %> |
<% if invoice_stub.bundle_keys.present? %>
<% invoice_stub.bundle_keys.split(",").each do |bundle_key| %>
<%= link_to @bundle_names[bundle_key], Kaui.bundle_home_path.call(bundle_key) %> <% end %> <% end %> |
<%= "INVOICE" %> | <%= "Amount:" %> <%= invoice.amount %> <%= @account.currency %> <%= "Balance:" %> <%= invoice.balance %> <%= @account.currency %> <% if invoice.credit_adjustment.present? && invoice.credit_adjustment > 0 %> <%= "Credit adjustment:" %> <%= invoice.credit_adjustment %> <%= @account.currency %> <% end %> <% if invoice.credit_balance_adjustment.present? && invoice.credit_balance_adjustment > 0 %> <%= "Credit balance adjustment:" %> <%= invoice.credit_balance_adjustment %> <%= @account.currency %> <% end %> <% if invoice.refund_adjustment.present? && invoice.refund_adjustment < 0 %> <%= "Refund adjustment:" %> <%= invoice.refund_adjustment %> <%= @account.currency %> <% end %> <%= "Invoice #" %> <%= link_to invoice.invoice_number, invoice_path(:id => invoice.invoice_id) %> |
<% if invoice.balance > 0 %>
|
|
<% if refund.requested_dt.present? %> <%= format_date(refund.requested_dt).html_safe %> <% else %> [unknown] <% end %> | <% if refund.requested_dt.present? %> <%= format_date(refund.requested_dt).html_safe %> <% else %> [unknown] <% end %> |
<% payment.bundle_keys.split(",").each do |bundle_key| %>
<%= link_to @bundle_names[bundle_key], Kaui.bundle_home_path.call(bundle_key) %> <% end %> |
<%= "REFUND" %> |
<%= "Adjusted:" %> <% if refund.adjusted %>yes<% else %>no<% end %> <%= "Payment id:" %> <%= refund.payment_id %> <%= "Refund Amount:" %> <%= refund.refund_amount %> |
||
<% if chargeback.effective_dt.present? %> <%= format_date(chargeback.effective_dt).html_safe %> <% else %> [unknown] <% end %> | <% if chargeback.effective_dt.present? %> <%= format_date(chargeback.effective_dt).html_safe %> <% else %> [unknown] <% end %> |
<% payment.bundle_keys.split(",").each do |bundle_key| %>
<%= link_to @bundle_names[bundle_key], Kaui.bundle_home_path.call(bundle_key) %> <% end %> |
<%= "CHARGEBACK" %> |
<%= "Payment id:" %> <%= chargeback.payment_id %> <%= "Chargeback Amount:" %> <%= chargeback.chargeback_amount %> |
<% end %> <% end %> <% @timeline.payments.each do |payment| %> <% if payment.bundle_keys.present? %> <% bundles = payment.bundle_keys.split(",").map {|bundle_key| @bundle_names[bundle_key] }.join(",") %> <% end %> <% if payment.invoice_id.present? %> <% invoice = @invoices_by_id[payment.invoice_id] %> <% else %> <% invoice = nil %> <% end %> | |
<% if payment.requested_dt.present? %> <%= format_date(payment.requested_dt).html_safe %> <% else %> [unknown] <% end %> | <% if payment.effective_dt.present? %> <%= format_date(payment.effective_dt).html_safe %> <% else %> [unknown] <% end %> |
<% payment.bundle_keys.split(",").each do |bundle_key| %>
<%= link_to @bundle_names[bundle_key], Kaui.bundle_home_path.call(bundle_key) %> <% end %> |
<%= "PAYMENT" %> |
<%= "Total amount:" %> <%= payment.amount %> <%= @account.currency if payment.amount.present? %> <%= "Paid amount:" %> <%= payment.paid_amount %> <%= @account.currency %> class="alert-error" <% elsif payment.status == 'SUCCESS' %>class="alert-success" <% end %>> <%= payment.status %> <%= "Invoice #" %> <%= link_to invoice.invoice_number, invoice_path(:id => invoice.invoice_id) %> |
<% if payment.payment_id.present? %>
|
|
<% if event.requested_dt.present? %> <%= format_date(event.requested_dt).html_safe %> <% else %> [unknown] <% end %> | <% if event.effective_dt.present? %> <%= format_date(event.effective_dt).html_safe %> <% else %> [unknown] <% end %> |
<%= link_to @bundle_names[bundle.external_key], Kaui.bundle_home_path.call(bundle.external_key) %> |
<%= event.event_type %> | <%= event.product %> <%= event.billing_period == 'NO_BILLING_PERIOD' || event.billing_period.nil? ? "" : event.billing_period.downcase.capitalize %> <%= event.phase.downcase.capitalize if event.phase.present? %> |