From 34c6cbffb5c12921e2fb085e4891459371e0108c Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 27 Dec 2024 22:01:37 +0200 Subject: [PATCH] add total to customer traffic report --- .../reports/customer_traffic_data_by_destinations.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/admin/reports/customer_traffic_data_by_destinations.rb b/app/admin/reports/customer_traffic_data_by_destinations.rb index 88676fd21..39a4c43e7 100644 --- a/app/admin/reports/customer_traffic_data_by_destinations.rb +++ b/app/admin/reports/customer_traffic_data_by_destinations.rb @@ -64,7 +64,13 @@ def scoped_collection end index footer_data: ->(collection) { BillingDecorator.new(collection.totals) } do - column :destination_prefix + column :destination_prefix, + footer: lambda { + strong do + 'Total:' + end + } + column :country, sortable: 'dst_country_id' column :network, sortable: 'dst_network_id'