Skip to content

Commit

Permalink
add total to customer traffic report
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-sinina committed Dec 27, 2024
1 parent 0f5236d commit 34c6cbf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/admin/reports/customer_traffic_data_by_destinations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 34c6cbf

Please sign in to comment.