Skip to content

Commit

Permalink
Merge pull request #1666 from dmitry-sinina/_custom_cdrs_total
Browse files Browse the repository at this point in the history
add total to customer traffic report
  • Loading branch information
dmitry-sinina authored Dec 28, 2024
2 parents 0f5236d + 34c6cbf commit 3d28884
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 3d28884

Please sign in to comment.