%= button_to "Refresh!", { :action => "refresh_account", :account_id => @account.account_id } %>
External key | Name | Currency | Balance | Inv. balance | Last inv. date | Last payment status | Default payment method |
---|---|---|---|---|---|---|---|
<%= link_to @snapshot.business_account.external_key, Kaui.account_home_path.call(@snapshot.business_account.external_key) %> | <%= @snapshot.business_account.name %> | <%= @snapshot.business_account.currency %> | 0 %>class="alert-error" <% elsif @snapshot.business_account.balance <= 0 %>class="alert-success" <% end %>><%= @snapshot.business_account.balance %> | 0 %>class="alert-error" <% elsif @snapshot.business_account.total_invoice_balance <= 0 %>class="alert-success" <% end %>><%= @snapshot.business_account.total_invoice_balance %> | <%= @snapshot.business_account.last_invoice_date %> | class="alert-error" <% elsif @snapshot.business_account.last_payment_status == 'SUCCESS' %>class="alert-success" <% end %>><%= @snapshot.business_account.last_payment_status %> | <%= @snapshot.business_account.default_payment_method_type %> |
Bundle key | Requested date | Event | Next start date | Next slug | Next price | Next mrr |
---|---|---|---|---|---|---|
<%= link_to Kaui.bundle_key_display_string.call(business_subscription_transition.external_key), Kaui.bundle_home_path.call(business_subscription_transition.external_key) %> | <%= format_date(business_subscription_transition.requested_timestamp, @account.timezone).html_safe %> | <%= business_subscription_transition.event_type %> | <%= format_date(business_subscription_transition.next_start_date, @account.timezone).html_safe unless business_subscription_transition.next_start_date.nil? %> | <%= business_subscription_transition.next_slug %> | <%= humanized_money business_subscription_transition.next_price_to_money unless business_subscription_transition.next_price.nil? %> | <%= humanized_money business_subscription_transition.next_mrr_to_money unless business_subscription_transition.next_mrr.nil? %> |
Invoice number | Invoice date | Target date | Currency | Balance | Amount paid | Amount charged | Amount credited |
---|---|---|---|---|---|---|---|
<%= link_to business_invoice.invoice_number, invoice_path(:id => business_invoice.invoice_id) %> | <%= business_invoice.invoice_date %> | <%= business_invoice.target_date %> | <%= business_invoice.currency %> | 0 %>class="alert-error" <% elsif business_invoice.balance <= 0 %>class="alert-success" <% end %>><%= humanized_money business_invoice.balance_to_money %> | <%= humanized_money business_invoice.amount_paid_to_money %> | <%= humanized_money business_invoice.amount_charged_to_money %> | <%= humanized_money business_invoice.amount_credited_to_money %> |
Inv. number | Effective date | Currency | Amount | Error | Status | Payment type | Payment method | Card type | Invoice payment type |
---|---|---|---|---|---|---|---|---|---|
<%= link_to business_invoice_payment.invoice_number, invoice_path(:id => business_invoice_payment.invoice_id) %> | <%= format_date(business_invoice_payment.effective_date, @account.timezone).html_safe %> | <%= business_invoice_payment.currency %> | <%= humanized_money business_invoice_payment.amount_to_money %> | <%= business_invoice_payment.payment_error %> | <%= business_invoice_payment.processing_status %> | <%= business_invoice_payment.payment_type %> | <%= business_invoice_payment.payment_method %> | <%= business_invoice_payment.card_type %> | <%= business_invoice_payment.invoice_payment_type %> |
Object type | Id | Name |
---|---|---|
<%= business_tag.object_type %> | <% if business_tag.object_type == 'ACCOUNT' %> <%= link_to business_tag.id, account_path(:id => business_tag.id) %> <% elsif business_tag.object_type == 'INVOICE' %> <%= link_to business_tag.id, invoice_path(:id => business_tag.id) %> <% elsif business_tag.object_type == 'PAYMENT' %> <%= link_to business_tag.id, payment_path(:id => business_tag.id) %> <% elsif business_tag.object_type == 'BUNDLE' %> <%= link_to business_tag.id, bundle_path(:id => business_tag.id) %> <% else %> <%= business_field.id %> <% end %> | <%= business_tag.name %> |
Object type | Id | Name | Value |
---|---|---|---|
<%= business_field.object_type %> | <% if business_field.object_type == 'ACCOUNT' %> <%= link_to business_field.id, account_path(:id => business_field.id) %> <% elsif business_field.object_type == 'INVOICE' %> <%= link_to business_field.id, invoice_path(:id => business_field.id) %> <% elsif business_field.object_type == 'PAYMENT' %> <%= link_to business_field.id, payment_path(:id => business_field.id) %> <% elsif business_field.object_type == 'BUNDLE' %> <%= link_to business_field.id, bundle_path(:id => business_field.id) %> <% else %> <%= business_field.id %> <% end %> | <%= business_field.name %> | <%= business_field.value %> |