Existing Overdue Config <% if can? :config_upload, Kaui::AdminTenant %> <%= link_to ''.html_safe, kaui_engine.admin_tenant_new_overdue_config_path(:id => @tenant.id), :class => 'btn btn-xs' %> <% end %> View overdue xml

<% if @overdue.nil? || @overdue.has_states %> No overdue configuration defined for tenant <% else %> <% @overdue.overdue_states.reverse_each do |state| %> <% end %> <% end %>
Name External Message Actions Conditions
<%= state.name %> <%= state.external_message %>
    <% if state.is_block_changes %>
  • <%= 'Block changes:' %><%= state.is_block_changes %>
  • <% end %> <% if state.is_disable_entitlement %>
  • <%= 'Cancel subscriptions:' %><%= state.is_disable_entitlement %> (policy:<%= state.subscription_cancellation_policy %>)
  • <% end %>
<% if state.condition %>
    <% if state.condition.time_since_earliest_unpaid_invoice_equals_or_exceeds %>
  • <%= 'Time Since earliest unpaid invoice >=' %> <%= state.condition.time_since_earliest_unpaid_invoice_equals_or_exceeds.number %><%= state.condition.time_since_earliest_unpaid_invoice_equals_or_exceeds.unit %>
  • <% end %> <% if state.condition.control_tag_inclusion %>
  • <%= 'Control tag inclusion' %> <%= state.condition.control_tag_inclusion %>
  • <% end %> <% if state.condition.control_tag_exclusion %>
  • <%= 'Control tag exclusion' %> <%= state.condition.control_tag_exclusion %>
  • <% end %> <% if state.condition.number_of_unpaid_invoices_equals_or_exceeds %>
  • <%= 'Number of unpaid invoices >=' %> <%= state.condition.number_of_unpaid_invoices_equals_or_exceeds %>
  • <% end %> <% if state.condition.total_unpaid_invoice_balance_equals_or_exceeds %>
  • <%= 'Total unpaid invoice balance >=' %> <%= state.condition.total_unpaid_invoice_balance_equals_or_exceeds %>
  • <% end %>
<% end %>
<%= form_tag(kaui_engine.admin_tenant_display_overdue_xml_path, :id => "submit_overdue_form_xml", :method => 'post', :multipart => true, :class => "hide") do %> <%= hidden_field_tag(:xml, @overdue_xml) %> <%= submit_tag 'submit' %> <% end %>
<%= javascript_tag do %> function submit_overdue_xml() { $("#submit_overdue_form_xml").submit(); }; <% end %>