kaui 3.0.9 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/images/kaui/account/authorize.svg +4 -0
- data/app/assets/images/kaui/account/credit.svg +4 -0
- data/app/assets/images/kaui/account/down-arrow.svg +3 -0
- data/app/assets/images/kaui/account/edit.svg +4 -0
- data/app/assets/images/kaui/account/pay-all.svg +5 -0
- data/app/assets/images/kaui/account/plus.svg +3 -0
- data/app/assets/images/kaui/account/purchase.svg +5 -0
- data/app/assets/images/kaui/account/refresh.svg +5 -0
- data/app/assets/images/kaui/arrow.svg +3 -0
- data/app/assets/images/kaui/card.svg +5 -0
- data/app/assets/images/kaui/copy.svg +12 -0
- data/app/assets/images/kaui/dashboard/aviate.svg +6 -0
- data/app/assets/images/kaui/dashboard/custom-field.svg +5 -0
- data/app/assets/images/kaui/dashboard/kaui-doc-img.png +0 -0
- data/app/assets/images/kaui/dashboard/plugins.svg +7 -0
- data/app/assets/images/kaui/dashboard/tags.svg +4 -0
- data/app/assets/images/kaui/dashboard/users.svg +6 -0
- data/app/assets/images/kaui/delete.svg +6 -0
- data/app/assets/images/kaui/dots.svg +5 -0
- data/app/assets/images/kaui/download-csv.svg +5 -0
- data/app/assets/images/kaui/download.svg +4 -0
- data/app/assets/images/kaui/eye-off.svg +9 -0
- data/app/assets/images/kaui/eye.svg +7 -0
- data/app/assets/images/kaui/file-upload.svg +34 -0
- data/app/assets/images/kaui/generate.svg +5 -0
- data/app/assets/images/kaui/header/account.svg +4 -0
- data/app/assets/images/kaui/header/cog_icon.svg +4 -0
- data/app/assets/images/kaui/header/invoice.svg +5 -0
- data/app/assets/images/kaui/header/payment.svg +5 -0
- data/app/assets/images/kaui/header/search_icon.svg +4 -0
- data/app/assets/images/kaui/header/subscription.svg +6 -0
- data/app/assets/images/kaui/logout.svg +4 -0
- data/app/assets/images/kaui/modal/close.svg +3 -0
- data/app/assets/images/kaui/modal/plus.svg +3 -0
- data/app/assets/images/kaui/modal/red-close.svg +10 -0
- data/app/assets/images/kaui/modal/search.svg +4 -0
- data/app/assets/images/kaui/payment/payment.svg +4 -0
- data/app/assets/images/kaui/payment/refund.svg +4 -0
- data/app/assets/images/kaui/plus.svg +3 -0
- data/app/assets/images/kaui/search.svg +4 -0
- data/app/assets/images/kaui/setting/account.svg +10 -0
- data/app/assets/images/kaui/setting/analytics.svg +7 -0
- data/app/assets/images/kaui/setting/custom-field.svg +5 -0
- data/app/assets/images/kaui/setting/e-notifications.svg +6 -0
- data/app/assets/images/kaui/setting/plugins.svg +7 -0
- data/app/assets/images/kaui/setting/plus.svg +3 -0
- data/app/assets/images/kaui/setting/reset.svg +4 -0
- data/app/assets/images/kaui/setting/tag-definitions.svg +5 -0
- data/app/assets/images/kaui/setting/tags.svg +4 -0
- data/app/assets/images/kaui/setting/tenants.svg +6 -0
- data/app/assets/images/kaui/setting/users.svg +6 -0
- data/app/assets/images/kaui/setting.svg +4 -0
- data/app/assets/images/kaui/sidebar/account.svg +4 -0
- data/app/assets/images/kaui/sidebar/audit.svg +5 -0
- data/app/assets/images/kaui/sidebar/custom-fields.svg +5 -0
- data/app/assets/images/kaui/sidebar/invoices.svg +5 -0
- data/app/assets/images/kaui/sidebar/payments.svg +5 -0
- data/app/assets/images/kaui/sidebar/queues.svg +5 -0
- data/app/assets/images/kaui/sidebar/subscriptions.svg +6 -0
- data/app/assets/images/kaui/sidebar/tags.svg +5 -0
- data/app/assets/images/kaui/sidebar/timeline.svg +5 -0
- data/app/assets/images/kaui/sign_in_background.svg +57 -0
- data/app/assets/images/kaui/sort-down.svg +3 -0
- data/app/assets/images/kaui/sort-up.svg +3 -0
- data/app/assets/images/kaui/subscription/add-on.svg +7 -0
- data/app/assets/images/kaui/subscription/cancel.svg +6 -0
- data/app/assets/images/kaui/subscription/change.svg +6 -0
- data/app/assets/images/kaui/subscription/date.svg +6 -0
- data/app/assets/images/kaui/subscription/pause.svg +4 -0
- data/app/assets/images/kaui/timeline/authorize.svg +5 -0
- data/app/assets/images/kaui/timeline/capture.svg +5 -0
- data/app/assets/images/kaui/timeline/chargeback.svg +3 -0
- data/app/assets/images/kaui/timeline/credit.svg +6 -0
- data/app/assets/images/kaui/timeline/invoice.svg +5 -0
- data/app/assets/images/kaui/timeline/purchase.svg +5 -0
- data/app/assets/images/kaui/timeline/refund.svg +4 -0
- data/app/assets/images/kaui/timeline/void.svg +4 -0
- data/app/assets/images/kaui/view-doc.svg +6 -0
- data/app/assets/images/kaui/warning.png +0 -0
- data/app/assets/javascripts/application.js +2 -2
- data/app/assets/javascripts/kaui/kaui_override.js +232 -0
- data/app/assets/javascripts/kaui/multi_functions_bar_utils.js +125 -24
- data/app/assets/stylesheets/application.css +13 -1
- data/app/assets/stylesheets/kaui/account.css +2028 -14
- data/app/assets/stylesheets/kaui/account_timeline.css +183 -0
- data/app/assets/stylesheets/kaui/admin_allowed_users.css +260 -0
- data/app/assets/stylesheets/kaui/audit.css +26 -16
- data/app/assets/stylesheets/kaui/audit_logs.css +443 -0
- data/app/assets/stylesheets/kaui/auth_pages.css +72 -0
- data/app/assets/stylesheets/kaui/breadcrumb.css +38 -0
- data/app/assets/stylesheets/kaui/chargebacks.css +118 -0
- data/app/assets/stylesheets/kaui/clock.css +103 -0
- data/app/assets/stylesheets/kaui/common.css +1744 -401
- data/app/assets/stylesheets/kaui/custom_fields.css +546 -0
- data/app/assets/stylesheets/kaui/dashboard.css +26 -0
- data/app/assets/stylesheets/kaui/datatable.css +114 -56
- data/app/assets/stylesheets/kaui/header.css +221 -114
- data/app/assets/stylesheets/kaui/home.css +89 -62
- data/app/assets/stylesheets/kaui/invoice.css +1061 -27
- data/app/assets/stylesheets/kaui/kaui.css +217 -145
- data/app/assets/stylesheets/kaui/overdue.css +5 -3
- data/app/assets/stylesheets/kaui/payment.css +1102 -13
- data/app/assets/stylesheets/kaui/queues.css +269 -0
- data/app/assets/stylesheets/kaui/refunds.css +185 -0
- data/app/assets/stylesheets/kaui/role_definitions.css +111 -0
- data/app/assets/stylesheets/kaui/sidebar.css +122 -0
- data/app/assets/stylesheets/kaui/subscription.css +677 -0
- data/app/assets/stylesheets/kaui/tag_definitions.css +524 -0
- data/app/assets/stylesheets/kaui/tags.css +592 -121
- data/app/assets/stylesheets/kaui/tenants.css +1478 -0
- data/app/assets/stylesheets/kaui/tooltip.css +9 -5
- data/app/assets/stylesheets/kaui/wallets.css +121 -0
- data/app/controllers/kaui/accounts_controller.rb +3 -2
- data/app/controllers/kaui/admin_tenants_controller.rb +33 -0
- data/app/controllers/kaui/custom_fields_controller.rb +1 -1
- data/app/controllers/kaui/engine_controller.rb +1 -2
- data/app/controllers/kaui/engine_controller_util.rb +5 -7
- data/app/controllers/kaui/home_controller.rb +24 -17
- data/app/controllers/kaui/invoices_controller.rb +4 -15
- data/app/controllers/kaui/payments_controller.rb +1 -1
- data/app/controllers/kaui/sessions_controller.rb +1 -0
- data/app/controllers/kaui/tag_definitions_controller.rb +1 -0
- data/app/helpers/kaui/account_helper.rb +13 -0
- data/app/helpers/kaui/plugin_helper.rb +27 -0
- data/app/views/kaui/account_custom_fields/index.html.erb +95 -29
- data/app/views/kaui/account_emails/_account_emails_table.html.erb +13 -3
- data/app/views/kaui/account_emails/_form.html.erb +23 -6
- data/app/views/kaui/account_emails/new.html.erb +12 -6
- data/app/views/kaui/account_tags/_form_bar.html.erb +10 -1
- data/app/views/kaui/account_tags/index.html.erb +103 -24
- data/app/views/kaui/account_timelines/_multi_functions_bar.html.erb +302 -69
- data/app/views/kaui/account_timelines/show.html.erb +360 -254
- data/app/views/kaui/accounts/_account_details.html.erb +165 -0
- data/app/views/kaui/accounts/_account_filterbar.html.erb +70 -80
- data/app/views/kaui/accounts/_add_parent.html.erb +26 -0
- data/app/views/kaui/accounts/_billing_details.html.erb +196 -0
- data/app/views/kaui/accounts/_close_account_modal.html.erb +62 -40
- data/app/views/kaui/accounts/_form_account.html.erb +157 -0
- data/app/views/kaui/accounts/_functions_bar.html.erb +606 -0
- data/app/views/kaui/accounts/_link_parent_modal.html.erb +1 -1
- data/app/views/kaui/accounts/_link_parent_to_modal.html.erb +62 -0
- data/app/views/kaui/accounts/_multi_functions_bar.html.erb +67 -28
- data/app/views/kaui/accounts/_payment_gateways.html.erb +43 -0
- data/app/views/kaui/accounts/_personal_details.html.erb +67 -0
- data/app/views/kaui/accounts/edit.html.erb +15 -9
- data/app/views/kaui/accounts/index.html.erb +77 -27
- data/app/views/kaui/accounts/new.html.erb +14 -8
- data/app/views/kaui/accounts/show.html.erb +17 -11
- data/app/views/kaui/admin/index.html.erb +44 -19
- data/app/views/kaui/admin_allowed_users/_form.html.erb +123 -31
- data/app/views/kaui/admin_allowed_users/edit.html.erb +15 -9
- data/app/views/kaui/admin_allowed_users/index.html.erb +150 -30
- data/app/views/kaui/admin_allowed_users/new.html.erb +14 -8
- data/app/views/kaui/admin_allowed_users/show.html.erb +137 -32
- data/app/views/kaui/admin_tenants/_add_allowed_user_modal.html.erb +42 -15
- data/app/views/kaui/admin_tenants/_clock.html.erb +72 -0
- data/app/views/kaui/admin_tenants/_form.html.erb +32 -20
- data/app/views/kaui/admin_tenants/_form_catalog_translation.erb +21 -8
- data/app/views/kaui/admin_tenants/_form_invoice_template.erb +25 -9
- data/app/views/kaui/admin_tenants/_form_invoice_translation.erb +36 -20
- data/app/views/kaui/admin_tenants/_form_plugin_config.erb +16 -20
- data/app/views/kaui/admin_tenants/_show_catalog.erb +13 -6
- data/app/views/kaui/admin_tenants/_show_catalog_simple.erb +95 -46
- data/app/views/kaui/admin_tenants/_show_catalog_xml.erb +62 -37
- data/app/views/kaui/admin_tenants/_show_overdue.erb +91 -75
- data/app/views/kaui/admin_tenants/_tenant_details.html.erb +106 -17
- data/app/views/kaui/admin_tenants/_tenants_table.html.erb +67 -6
- data/app/views/kaui/admin_tenants/_useful_links.html.erb +21 -16
- data/app/views/kaui/admin_tenants/index.html.erb +35 -11
- data/app/views/kaui/admin_tenants/index.js.erb +3 -0
- data/app/views/kaui/admin_tenants/new.html.erb +19 -13
- data/app/views/kaui/admin_tenants/new_catalog.html.erb +230 -98
- data/app/views/kaui/admin_tenants/new_overdue_config.html.erb +152 -80
- data/app/views/kaui/admin_tenants/new_plan_currency.html.erb +44 -30
- data/app/views/kaui/admin_tenants/show.html.erb +211 -78
- data/app/views/kaui/admin_tenants/show.js.erb +3 -0
- data/app/views/kaui/audit_logs/_multi_functions_bar.html.erb +298 -101
- data/app/views/kaui/audit_logs/index.html.erb +137 -38
- data/app/views/kaui/bundle_tags/_form_bar.html.erb +11 -4
- data/app/views/kaui/bundles/_bundle_details.html.erb +24 -12
- data/app/views/kaui/bundles/index.html.erb +79 -104
- data/app/views/kaui/bundles/pause_resume.html.erb +73 -38
- data/app/views/kaui/chargebacks/_form.html.erb +35 -18
- data/app/views/kaui/chargebacks/new.html.erb +16 -9
- data/app/views/kaui/charges/_form.html.erb +54 -42
- data/app/views/kaui/charges/new.html.erb +15 -8
- data/app/views/kaui/components/breadcrumb/_breadcrumb.html.erb +146 -0
- data/app/views/kaui/components/button/_button.html.erb +16 -0
- data/app/views/kaui/components/dashboard/_card.html.erb +15 -0
- data/app/views/kaui/components/dashboard/_setting.html.erb +15 -0
- data/app/views/kaui/components/form_input/_form_input.html.erb +4 -0
- data/app/views/kaui/components/form_password/_form_password.html.erb +6 -0
- data/app/views/kaui/components/logo/_logo.html.erb +1 -0
- data/app/views/kaui/components/menu_dropdown/_menu_dropdown.html.erb +59 -0
- data/app/views/kaui/components/search_input/_search_input.html.erb +81 -0
- data/app/views/kaui/credits/_form.html.erb +42 -25
- data/app/views/kaui/credits/new.html.erb +15 -8
- data/app/views/kaui/custom_fields/_form.html.erb +37 -25
- data/app/views/kaui/custom_fields/_list_bar.html.erb +11 -10
- data/app/views/kaui/custom_fields/index.html.erb +121 -27
- data/app/views/kaui/custom_fields/new.html.erb +19 -8
- data/app/views/kaui/errors/500.html.erb +1 -1
- data/app/views/kaui/home/index.html.erb +77 -30
- data/app/views/kaui/invoice_items/_edit_form.html.erb +30 -14
- data/app/views/kaui/invoice_items/edit.html.erb +15 -7
- data/app/views/kaui/invoice_tags/_form_bar.html.erb +13 -3
- data/app/views/kaui/invoices/_invoice_filterbar.html.erb +53 -69
- data/app/views/kaui/invoices/_invoice_table.html.erb +77 -92
- data/app/views/kaui/invoices/_multi_functions_bar.html.erb +351 -140
- data/app/views/kaui/invoices/index.html.erb +89 -27
- data/app/views/kaui/invoices/show.html.erb +392 -80
- data/app/views/kaui/layouts/kaui_account_sidebar.html.erb +42 -0
- data/app/views/kaui/layouts/kaui_application.html.erb +29 -15
- data/app/views/kaui/layouts/kaui_flash.html.erb +82 -31
- data/app/views/kaui/layouts/kaui_navbar.html.erb +109 -82
- data/app/views/kaui/layouts/kaui_setting_sidebar.html.erb +36 -0
- data/app/views/kaui/payment_methods/_form.html.erb +32 -11
- data/app/views/kaui/payment_methods/_new_creditcard_payment_method.html.erb +35 -34
- data/app/views/kaui/payment_methods/_payment_methods_details_table.html.erb +27 -29
- data/app/views/kaui/payment_methods/_payment_methods_table.html.erb +116 -38
- data/app/views/kaui/payment_methods/_plugin_properties.html.erb +19 -9
- data/app/views/kaui/payment_methods/new.html.erb +14 -8
- data/app/views/kaui/payments/_form.html.erb +30 -13
- data/app/views/kaui/payments/_multi_functions_bar.html.erb +351 -141
- data/app/views/kaui/payments/_payment_filterbar.html.erb +63 -79
- data/app/views/kaui/payments/_payment_invoice_table.html.erb +105 -0
- data/app/views/kaui/payments/_payment_table.html.erb +4 -67
- data/app/views/kaui/payments/index.html.erb +90 -26
- data/app/views/kaui/payments/new.html.erb +15 -8
- data/app/views/kaui/payments/show.html.erb +222 -28
- data/app/views/kaui/queues/index.html.erb +329 -111
- data/app/views/kaui/refunds/_form.html.erb +68 -45
- data/app/views/kaui/refunds/new.html.erb +15 -8
- data/app/views/kaui/role_definitions/_form.html.erb +104 -17
- data/app/views/kaui/role_definitions/new.html.erb +15 -8
- data/app/views/kaui/sessions/_form.html.erb +9 -19
- data/app/views/kaui/sessions/new.html.erb +10 -9
- data/app/views/kaui/subscriptions/_cancel_by_date_modal.html.erb +65 -35
- data/app/views/kaui/subscriptions/_edit_form.html.erb +66 -35
- data/app/views/kaui/subscriptions/_form.html.erb +63 -32
- data/app/views/kaui/subscriptions/_subscriptions_table.html.erb +215 -57
- data/app/views/kaui/subscriptions/edit.html.erb +19 -8
- data/app/views/kaui/subscriptions/edit_bcd.erb +46 -16
- data/app/views/kaui/subscriptions/new.html.erb +22 -15
- data/app/views/kaui/tag_definitions/_form.html.erb +51 -30
- data/app/views/kaui/tag_definitions/index.html.erb +151 -40
- data/app/views/kaui/tag_definitions/new.html.erb +15 -8
- data/app/views/kaui/tags/index.html.erb +136 -47
- data/app/views/kaui/tenants/_form.html.erb +8 -5
- data/app/views/kaui/tenants/index.html.erb +15 -9
- data/app/views/kaui/transactions/_control_plugin_names.html.erb +18 -10
- data/app/views/kaui/transactions/_form.html.erb +86 -25
- data/app/views/kaui/transactions/new.html.erb +15 -9
- data/config/routes.rb +1 -0
- data/lib/kaui/engine.rb +11 -0
- data/lib/kaui/version.rb +1 -1
- data/lib/kaui.rb +0 -1
- metadata +120 -2
|
@@ -1,203 +1,292 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
<div class="
|
|
4
|
-
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
<div class="kaui-container kaui-account-timelines-show">
|
|
2
|
+
<%= render "kaui/components/breadcrumb/breadcrumb" %>
|
|
3
|
+
<div class="d-flex " style="gap: 4rem;">
|
|
4
|
+
<%= render :template => 'kaui/layouts/kaui_account_sidebar' %>
|
|
5
|
+
<div class="account-timeline">
|
|
6
|
+
<div class="d-flex flex-column ">
|
|
7
|
+
<div class="account-timeline-header mb-4">
|
|
8
|
+
<div class="d-flex align-items-center">
|
|
9
|
+
<h2>Account Timeline</h2>
|
|
10
|
+
</div>
|
|
11
|
+
<span>
|
|
12
|
+
<%= render :partial => 'multi_functions_bar' %>
|
|
13
|
+
</span>
|
|
13
14
|
</div>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="form-group">
|
|
16
|
-
<label for="events" class="col-sm-2 control-label">Filter by event type</label>
|
|
17
|
-
|
|
18
|
-
<div class="col-sm-10 ">
|
|
19
|
-
<%= select_tag 'event_types', options_for_select('<option value="all">ALL</option><option value="invoice">INVOICE</option><option value="payment">PAYMENT</option><option value="entitlement">ENTITLEMENTS</option>'.html_safe), :class => 'form-control' %>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</form>
|
|
23
15
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
16
|
+
<form class="form-horizontal d-flex gap-2 mb-4 pb-3 border-bottom mx-0">
|
|
17
|
+
<div class="form-group p-0 w-100">
|
|
18
|
+
<label for="search" class="control-label">Search</label>
|
|
19
|
+
<div class="input-group">
|
|
20
|
+
<input type="text" id="search" class="form-control m-0" placeholder="Search">
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="form-group p-0 w-100 max-width-148">
|
|
24
|
+
<label for="bundles" class="control-label">Filter by bundle</label>
|
|
25
|
+
<div class="d-flex">
|
|
26
|
+
<%= select_tag 'bundles', options_for_select(['All'] + @bundle_names.values.sort, @selected_bundle || 'all'), :class => 'form-control' %>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="form-group p-0 w-100 max-width-148">
|
|
30
|
+
<label for="payment_filter" class="control-label">Payment</label>
|
|
31
|
+
<div class="d-flex">
|
|
32
|
+
<%= select_tag 'payment_filter', options_for_select('<option value="all">ALL</option><option value="authorize">AUTHORIZE</option><option value="purchase">PURCHASE</option><option value="capture">CAPTURE</option><option value="credit">CREDIT</option><option value="refund">REFUND</option><option value="void">VOID</option><option value="chargeback">CHARGEBACK</option>'.html_safe), :class => 'form-control' %>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="form-group p-0 w-100 max-width-148">
|
|
36
|
+
<label for="subscription_filter" class="control-label">Subscription</label>
|
|
37
|
+
<div class="d-flex">
|
|
38
|
+
<%= select_tag 'subscription_filter', options_for_select('<option value="all">ALL</option><option value="start_entitlement">START_ENTITLEMENT</option><option value="pause_entitlement">PAUSE_ENTITLEMENT</option><option value="resume_entitlement">RESUME_ENTITLEMENT</option><option value="stop_entitlement">STOP_ENTITLEMENT</option><option value="phase">PHASE</option><option value="change">CHANGE</option>'.html_safe), :class => 'form-control' %>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="form-group p-0 w-100 max-width-148">
|
|
42
|
+
<label for="billing_filter" class="control-label">Billing</label>
|
|
43
|
+
<div class="d-flex">
|
|
44
|
+
<%= select_tag 'billing_filter', options_for_select('<option value="all">ALL</option><option value="invoice">INVOICE</option><option value="start_billing">START_BILLING</option><option value="pause_billing">PAUSE_BILLING</option><option value="resume_billing">RESUME_BILLING</option><option value="stop_billing">STOP_BILLING</option>'.html_safe), :class => 'form-control' %>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="form-group p-0 d-flex align-self-end justify-content-end w-100">
|
|
48
|
+
<button type="button" id="clear-all-filters" class="dots-menu link-button">Clear Filters</button>
|
|
49
|
+
</div>
|
|
50
|
+
</form>
|
|
51
|
+
|
|
52
|
+
<div>
|
|
53
|
+
<% if @account.present? %>
|
|
54
|
+
<% @invoices.each do |invoice_stub| %>
|
|
55
|
+
<% if invoice_stub.bundle_keys.present? %>
|
|
56
|
+
<% bundles = invoice_stub.bundle_keys.split(',').map { |bundle_key| @bundle_names[bundle_key] }.join(',') %>
|
|
57
|
+
<% end %>
|
|
58
|
+
<% if invoice_stub.invoice_id.present? && @invoices_by_id.has_key?(invoice_stub.invoice_id) %>
|
|
59
|
+
<% invoice = @invoices_by_id[invoice_stub.invoice_id] %>
|
|
60
|
+
<% else %>
|
|
61
|
+
<% invoice = invoice_stub %>
|
|
62
|
+
<% end %>
|
|
63
|
+
<div title="<%= bundles %>" data-event-type="INVOICE">
|
|
64
|
+
<div class="datetime-container">
|
|
65
|
+
<% if invoice.target_date.present? %>
|
|
66
|
+
<%= invoice.target_date %>
|
|
67
|
+
<% else %>
|
|
68
|
+
[unknown]
|
|
69
|
+
<% end %>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="account-timeline-card d-flex gap-3">
|
|
72
|
+
<span class="icon-container">
|
|
73
|
+
<%= image_tag("kaui/timeline/invoice.svg", width: 20, height: 20) %>
|
|
74
|
+
</span>
|
|
75
|
+
|
|
76
|
+
<div class="d-flex justify-content-start flex-column gap-3 w-100 row">
|
|
77
|
+
<h3>INVOICE</h3>
|
|
78
|
+
<div class="w-100">
|
|
79
|
+
<div class="row account-timeline-card-detail">
|
|
80
|
+
<div class="col-sm-4">
|
|
81
|
+
<div class="mb-3">
|
|
82
|
+
<b>Amount</b>
|
|
83
|
+
<p>
|
|
84
|
+
<%= humanized_money_with_symbol invoice.amount_to_money %>(<%= @account.currency %>)<span class="hide" title="<%= invoice.invoice_number %>"></span>
|
|
85
|
+
</p>
|
|
86
|
+
</div>
|
|
87
|
+
<div>
|
|
88
|
+
<b>Refund Adjustment</b>
|
|
89
|
+
<p>
|
|
90
|
+
<%= humanized_money_with_symbol invoice.refund_adjustment_to_money %>(<%= @account.currency %>)
|
|
91
|
+
</p>
|
|
92
|
+
</div>
|
|
93
|
+
<% if invoice_stub.audit_logs.present? %>
|
|
94
|
+
<div class="mt-3">
|
|
95
|
+
<b>Reason Code / Comments</b>
|
|
96
|
+
<p>
|
|
97
|
+
<% invoice_stub.audit_logs.each do |entry| %>
|
|
98
|
+
<%= Kaui::AuditLog.description(entry) %>
|
|
99
|
+
<% end %>
|
|
100
|
+
</p>
|
|
101
|
+
</div>
|
|
102
|
+
<% end %>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="col-sm-4">
|
|
105
|
+
<div class="mb-3">
|
|
106
|
+
<b>Balance</b>
|
|
107
|
+
<p>
|
|
108
|
+
<%= humanized_money_with_symbol invoice.balance_to_money %>(<%= @account.currency %>)
|
|
109
|
+
</p>
|
|
110
|
+
</div>
|
|
111
|
+
<div>
|
|
112
|
+
<b>Invoice number</b>
|
|
113
|
+
<p><%= link_to invoice.invoice_number, account_invoice_path(invoice.account_id, invoice.invoice_id) %></p>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="col-sm-4">
|
|
117
|
+
<div class="mb-3">
|
|
118
|
+
<b>Credit Adjustment</b>
|
|
119
|
+
<p>
|
|
120
|
+
<%= humanized_money_with_symbol invoice.credit_adjustment_to_money %>(<%= @account.currency %>)
|
|
121
|
+
</p>
|
|
122
|
+
</div>
|
|
123
|
+
<% if invoice_stub.bundle_keys.present? %>
|
|
124
|
+
<div>
|
|
125
|
+
<b>Bundle</b>
|
|
126
|
+
<p>
|
|
127
|
+
<% invoice_stub.bundle_keys.split(',').each do |bundle_key| %>
|
|
128
|
+
<%= truncate_uuid(@bundle_names[bundle_key]) %>
|
|
129
|
+
<% end %>
|
|
130
|
+
</p>
|
|
131
|
+
</div>
|
|
62
132
|
<% end %>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<%= 'Amount:' %> <%= humanized_money_with_symbol invoice.amount_to_money %>
|
|
71
|
-
(<%= @account.currency %>)
|
|
72
|
-
</li>
|
|
73
|
-
<li><%= 'Balance:' %> <%= humanized_money_with_symbol invoice.balance_to_money %>
|
|
74
|
-
(<%= @account.currency %>)
|
|
75
|
-
</li>
|
|
76
|
-
</li>
|
|
77
|
-
<% if invoice.credit_adj.present? && invoice.credit_adj > 0 %>
|
|
78
|
-
<li><%= 'Credit adjustment:' %> <%= humanized_money_with_symbol invoice.credit_adjustment_to_money %>
|
|
79
|
-
(<%= @account.currency %>)
|
|
80
|
-
</li>
|
|
81
|
-
<% end %>
|
|
82
|
-
<% if invoice.refund_adj.present? && invoice.refund_adj < 0 %>
|
|
83
|
-
<li><%= 'Refund adjustment:' %> <%= humanized_money_with_symbol invoice.refund_adjustment_to_money %>
|
|
84
|
-
(<%= @account.currency %>)
|
|
85
|
-
</li>
|
|
86
|
-
<% end %>
|
|
87
|
-
<li><%= 'Invoice #' %> <%= link_to invoice.invoice_number, account_invoice_path(invoice.account_id, invoice.invoice_id) %></li>
|
|
88
|
-
</ul>
|
|
89
|
-
</td>
|
|
90
|
-
<td>
|
|
91
|
-
<% if invoice_stub.audit_logs.present? %>
|
|
92
|
-
<ul>
|
|
93
|
-
<% invoice_stub.audit_logs.each do |entry| %>
|
|
94
|
-
<li><%= Kaui::AuditLog.description(entry) %></li>
|
|
95
|
-
<% end %>
|
|
96
|
-
</ul>
|
|
97
|
-
<% end %>
|
|
98
|
-
</td>
|
|
99
|
-
</tr>
|
|
133
|
+
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
100
140
|
<% end %>
|
|
141
|
+
|
|
101
142
|
<% @payments.each do |payment| %>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<td>
|
|
129
|
-
<ul>
|
|
130
|
-
<li>
|
|
143
|
+
<% if payment.target_invoice_id.present? %>
|
|
144
|
+
<% bundles = @bundle_names_by_invoice_id[payment.target_invoice_id].to_a.join(',') %>
|
|
145
|
+
<% invoice = @invoices_by_id[payment.target_invoice_id] %>
|
|
146
|
+
<% else %>
|
|
147
|
+
<% bundles = nil %>
|
|
148
|
+
<% invoice = nil %>
|
|
149
|
+
<% end %>
|
|
150
|
+
<% payment.transactions.each do |transaction| %>
|
|
151
|
+
<div title="<%= bundles %>" data-event-type="<%= transaction.transaction_type %>">
|
|
152
|
+
<div class="datetime-container">
|
|
153
|
+
<% if transaction.effective_date.present? %>
|
|
154
|
+
<%= format_date(transaction.effective_date, @account.time_zone).html_safe %>
|
|
155
|
+
<% else %>
|
|
156
|
+
[unknown]
|
|
157
|
+
<% end %>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="account-timeline-card d-flex gap-3">
|
|
160
|
+
<span class="icon-container">
|
|
161
|
+
<%= image_tag("kaui/timeline/#{transaction.transaction_type.downcase}.svg", width: 20, height: 20) %>
|
|
162
|
+
</span>
|
|
163
|
+
|
|
164
|
+
<div class="d-flex justify-content-start flex-column gap-3 w-100 row">
|
|
165
|
+
<h3><%= transaction.transaction_type %></h3>
|
|
166
|
+
<div class="w-100">
|
|
167
|
+
<div class="row account-timeline-card-detail">
|
|
168
|
+
<div class="col-sm-4">
|
|
131
169
|
<% unless transaction.transaction_type == 'VOID' %>
|
|
132
|
-
|
|
133
|
-
|
|
170
|
+
<div class="mb-3">
|
|
171
|
+
<b>Amount</b>
|
|
172
|
+
<p>
|
|
173
|
+
<%= humanized_money_with_symbol Kaui::Transaction.amount_to_money(transaction) %>(<%= transaction.currency %>)
|
|
174
|
+
</p>
|
|
175
|
+
</div>
|
|
134
176
|
<% end %>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
<% bundle.subscriptions.each do |sub| %>
|
|
163
|
-
<% sub.events.each do |event| %>
|
|
164
|
-
<!-- SKIP SERVICE_STATE_CHANGE -->
|
|
165
|
-
<% next if event.event_type == 'SERVICE_STATE_CHANGE' %>
|
|
166
|
-
<tr title="<%= @bundle_names[bundle.external_key] %>" data-event_type="<%= event.event_type %>">
|
|
167
|
-
<td>
|
|
168
|
-
<% if event.effective_date.present? %>
|
|
169
|
-
<%= format_date(event.effective_date, @account.time_zone).html_safe %>
|
|
170
|
-
<% else %>
|
|
171
|
-
[unknown]
|
|
177
|
+
<div>
|
|
178
|
+
<b>Payment Number</b>
|
|
179
|
+
<p><%= link_to payment.payment_number, account_payment_path(payment.account_id, payment.payment_id) %></p>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="col-sm-4">
|
|
183
|
+
<div class="mb-3">
|
|
184
|
+
<b>Status</b>
|
|
185
|
+
<p class="transaction-status"><%= colored_transaction_status(transaction.status) %></p>
|
|
186
|
+
</div>
|
|
187
|
+
<% unless invoice.nil? %>
|
|
188
|
+
<div>
|
|
189
|
+
<b>Invoice Number</b>
|
|
190
|
+
<p><%= link_to invoice.invoice_number, account_invoice_path(invoice.account_id, invoice.invoice_id) %></p>
|
|
191
|
+
</div>
|
|
192
|
+
<% end %>
|
|
193
|
+
</div>
|
|
194
|
+
<div class="col-sm-4">
|
|
195
|
+
<% if @bundle_keys_by_invoice_id[payment.target_invoice_id].present? %>
|
|
196
|
+
<div class="mb-3">
|
|
197
|
+
<b>Bundle</b>
|
|
198
|
+
<p>
|
|
199
|
+
<% @bundle_keys_by_invoice_id[payment.target_invoice_id].each do |bundle_key| %>
|
|
200
|
+
<%= truncate_uuid(@bundle_names[bundle_key]) %>
|
|
201
|
+
<% end %>
|
|
202
|
+
</p>
|
|
203
|
+
</div>
|
|
172
204
|
<% end %>
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
</ul>
|
|
184
|
-
</td>
|
|
185
|
-
<td>
|
|
186
|
-
<% if event.audit_logs.present? %>
|
|
187
|
-
<ul>
|
|
188
|
-
<% event.audit_logs.each do |entry| %>
|
|
189
|
-
<li><%= Kaui::AuditLog.description(entry) %></li>
|
|
205
|
+
<% if transaction.audit_logs.present? %>
|
|
206
|
+
<div>
|
|
207
|
+
<b>Reason Code / Comments</b>
|
|
208
|
+
<p>
|
|
209
|
+
<% transaction.audit_logs
|
|
210
|
+
.map { |entry| Kaui::AuditLog.description(entry) }
|
|
211
|
+
.chunk { |x| x }
|
|
212
|
+
.map(&:first)
|
|
213
|
+
.each do |entry| %>
|
|
214
|
+
<%= entry %>
|
|
190
215
|
<% end %>
|
|
191
|
-
</
|
|
216
|
+
</p>
|
|
217
|
+
</div>
|
|
192
218
|
<% end %>
|
|
193
|
-
</
|
|
194
|
-
</
|
|
195
|
-
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
<% end %>
|
|
226
|
+
<% end %>
|
|
227
|
+
|
|
228
|
+
<% @bundles.each do |bundle| %>
|
|
229
|
+
<% bundle.subscriptions.each do |sub| %>
|
|
230
|
+
<% sub.events.each do |event| %>
|
|
231
|
+
<% next if event.event_type == 'SERVICE_STATE_CHANGE' %>
|
|
232
|
+
<div title="<%= @bundle_names[bundle.external_key] %>" data-event-type="<%= event.event_type %>">
|
|
233
|
+
<div class="datetime-container">
|
|
234
|
+
<% if event.effective_date.present? %>
|
|
235
|
+
<%= format_date(event.effective_date, @account.time_zone).html_safe %>
|
|
236
|
+
<% else %>
|
|
237
|
+
[unknown]
|
|
238
|
+
<% end %>
|
|
239
|
+
</div>
|
|
240
|
+
<div class="account-timeline-card d-flex gap-3">
|
|
241
|
+
<span class="icon-container">
|
|
242
|
+
<%= image_tag("kaui/timeline/invoice.svg", width: 20, height: 20) %>
|
|
243
|
+
</span>
|
|
244
|
+
|
|
245
|
+
<div class="d-flex justify-content-start flex-column gap-3 w-100 row">
|
|
246
|
+
<h3><%= event.event_type %></h3>
|
|
247
|
+
<div class="w-100">
|
|
248
|
+
<div class="row account-timeline-card-detail">
|
|
249
|
+
<div class="col-sm-4">
|
|
250
|
+
<div>
|
|
251
|
+
<b>Details</b>
|
|
252
|
+
<p>
|
|
253
|
+
<%= event.phase %><span class="hide" title="<%= sub.product_category %>"></span>
|
|
254
|
+
</p>
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
</div>
|
|
258
|
+
<div class="col-sm-4">
|
|
259
|
+
<div>
|
|
260
|
+
<b>Bundle</b>
|
|
261
|
+
<p>
|
|
262
|
+
<%= truncate_uuid(@bundle_names[bundle.external_key]) %>
|
|
263
|
+
</p>
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
266
|
+
<div class="col-sm-4">
|
|
267
|
+
<div>
|
|
268
|
+
<b>Reason Code / Comments</b>
|
|
269
|
+
<p>
|
|
270
|
+
<% if event.audit_logs.present? %>
|
|
271
|
+
<% event.audit_logs.each do |entry| %>
|
|
272
|
+
<%= Kaui::AuditLog.description(entry) %>
|
|
273
|
+
<% end %>
|
|
274
|
+
<% end %>
|
|
275
|
+
</p>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
</div>
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
196
283
|
<% end %>
|
|
284
|
+
<% end %>
|
|
197
285
|
<% end %>
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
286
|
+
<% end %>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
</div>
|
|
201
290
|
</div>
|
|
202
291
|
</div>
|
|
203
292
|
|
|
@@ -208,7 +297,7 @@
|
|
|
208
297
|
});
|
|
209
298
|
}
|
|
210
299
|
|
|
211
|
-
eventsOrder = ["START_ENTITLEMENT", "START_BILLING", "PAUSE_ENTITLEMENT", "PAUSE_BILLING", "RESUME_ENTITLEMENT",
|
|
300
|
+
var eventsOrder = ["START_ENTITLEMENT", "START_BILLING", "PAUSE_ENTITLEMENT", "PAUSE_BILLING", "RESUME_ENTITLEMENT",
|
|
212
301
|
"RESUME_BILLING", "PHASE", "CHANGE", "STOP_ENTITLEMENT", "STOP_BILLING", "INVOICE", "AUTHORIZE", "PURCHASE", "CAPTURE",
|
|
213
302
|
"CREDIT", "REFUND", "VOID", "CHARGEBACK"];
|
|
214
303
|
|
|
@@ -227,7 +316,7 @@
|
|
|
227
316
|
function extractTitleAttributeFromText(txt) {
|
|
228
317
|
// Ugly - better way of doing this?
|
|
229
318
|
var matches = txt.match(/title="\w+"/g);
|
|
230
|
-
if (matches == null || matches.
|
|
319
|
+
if (matches == null || matches.length == 0) {
|
|
231
320
|
return null;
|
|
232
321
|
}
|
|
233
322
|
return matches[0].split('=')[1];
|
|
@@ -263,75 +352,92 @@
|
|
|
263
352
|
});
|
|
264
353
|
}
|
|
265
354
|
|
|
266
|
-
function
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
355
|
+
function filterTimeline() {
|
|
356
|
+
var selectedBundle = $("#bundles").val();
|
|
357
|
+
var selectedPayment = $('#payment_filter').val().toUpperCase();
|
|
358
|
+
var selectedSubscription = $('#subscription_filter').val().toUpperCase();
|
|
359
|
+
var selectedBilling = $('#billing_filter').val().toUpperCase();
|
|
360
|
+
var searchQuery = $('#search').val().toLowerCase();
|
|
361
|
+
|
|
362
|
+
// Show all cards initially
|
|
363
|
+
$('.account-timeline-card').parent().show();
|
|
364
|
+
|
|
365
|
+
// Apply all filters to each card
|
|
366
|
+
$('.account-timeline-card').parent().each(function() {
|
|
367
|
+
var $card = $(this);
|
|
368
|
+
var eventType = $card.data('event-type');
|
|
369
|
+
var bundleTitle = $card.attr('title');
|
|
370
|
+
var cardText = $card.text().toLowerCase();
|
|
371
|
+
|
|
372
|
+
var shouldShow = true;
|
|
373
|
+
|
|
374
|
+
if (selectedBundle && selectedBundle !== '' && selectedBundle !== 'All') {
|
|
375
|
+
if (!bundleTitle || bundleTitle.indexOf(selectedBundle) === -1) {
|
|
376
|
+
shouldShow = false;
|
|
377
|
+
}
|
|
278
378
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
379
|
+
|
|
380
|
+
// Filter by payment events if not "ALL"
|
|
381
|
+
if (selectedPayment !== "ALL" && shouldShow) {
|
|
382
|
+
if (!eventType || eventType !== selectedPayment) {
|
|
383
|
+
shouldShow = false;
|
|
384
|
+
}
|
|
282
385
|
}
|
|
283
|
-
|
|
284
|
-
//
|
|
285
|
-
if ("ALL"
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
//do not unhide any rows
|
|
386
|
+
|
|
387
|
+
// Filter by subscription events if not "ALL"
|
|
388
|
+
if (selectedSubscription !== "ALL" && shouldShow) {
|
|
389
|
+
if (!eventType || eventType !== selectedSubscription) {
|
|
390
|
+
shouldShow = false;
|
|
391
|
+
}
|
|
290
392
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
//is tr event not an event in question
|
|
299
|
-
tr_event_does_not_match_filter = ("ENTITLEMENT" != event_to_filter &&
|
|
300
|
-
tr_event_type != event_to_filter);
|
|
301
|
-
|
|
302
|
-
//tr event is not an entitlement
|
|
303
|
-
tr_event_is_not_entitlement = ("ENTITLEMENT" == event_to_filter &&
|
|
304
|
-
core_events.indexOf(tr_event_type) >= 0);
|
|
305
|
-
|
|
306
|
-
if ( tr_event_does_not_match_filter || tr_event_is_not_entitlement )
|
|
307
|
-
{
|
|
308
|
-
//add hide to all who dont deserve the filter
|
|
309
|
-
tr.addClass("hide");
|
|
393
|
+
|
|
394
|
+
// Filter by billing events if not "ALL"
|
|
395
|
+
if (selectedBilling !== "ALL" && shouldShow) {
|
|
396
|
+
if (!eventType || eventType !== selectedBilling) {
|
|
397
|
+
shouldShow = false;
|
|
398
|
+
}
|
|
310
399
|
}
|
|
400
|
+
|
|
401
|
+
// Apply search filter if query exists
|
|
402
|
+
if (searchQuery && shouldShow) {
|
|
403
|
+
if (cardText.indexOf(searchQuery) === -1) {
|
|
404
|
+
shouldShow = false;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// Show or hide the card based on all filters
|
|
409
|
+
if (shouldShow) {
|
|
410
|
+
$card.show();
|
|
411
|
+
} else {
|
|
412
|
+
$card.hide();
|
|
413
|
+
}
|
|
414
|
+
});
|
|
311
415
|
}
|
|
312
416
|
|
|
313
|
-
function filterTable()
|
|
314
|
-
{
|
|
315
|
-
var dataTable = initTable();
|
|
316
|
-
var all_nodes = dataTable.fnGetNodes();
|
|
317
|
-
|
|
318
|
-
filterEachNode(all_nodes);
|
|
319
|
-
|
|
320
|
-
//my rows are filtered, draw table
|
|
321
|
-
dataTable.fnDraw();
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
|
|
325
417
|
$(document).ready(function() {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
418
|
+
disableLinks();
|
|
419
|
+
|
|
420
|
+
// Initialize filters with debounce for search
|
|
421
|
+
var searchTimeout;
|
|
422
|
+
$("#bundles, #payment_filter, #subscription_filter, #billing_filter").on('change', filterTimeline);
|
|
423
|
+
$('#search').on('keyup', function() {
|
|
424
|
+
clearTimeout(searchTimeout);
|
|
425
|
+
searchTimeout = setTimeout(filterTimeline, 300);
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
// Clear all filters button
|
|
431
|
+
$('#clear-all-filters').click(function() {
|
|
432
|
+
$('#search').val('');
|
|
433
|
+
$('#bundles').val('All');
|
|
434
|
+
$('#payment_filter').val('all');
|
|
435
|
+
$('#subscription_filter').val('all');
|
|
436
|
+
$('#billing_filter').val('all');
|
|
437
|
+
filterTimeline();
|
|
438
|
+
});
|
|
439
|
+
|
|
440
|
+
// Apply initial filters if any are selected
|
|
441
|
+
filterTimeline();
|
|
336
442
|
});
|
|
337
|
-
<% end %>
|
|
443
|
+
<% end %>
|