mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
9 lines
281 B
Ruby
9 lines
281 B
Ruby
class Admin::AccountController < Spree::Admin::BaseController
|
|
|
|
def show
|
|
@enterprises = spree_current_user.owned_enterprises
|
|
# .group_by('enterprise.id').joins(:billable_periods)
|
|
# .select('SUM(billable_periods.turnover) AS turnover').order('turnover DESC')
|
|
end
|
|
end
|