mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
10 lines
392 B
Ruby
10 lines
392 B
Ruby
class Admin::AccountController < Spree::Admin::BaseController
|
|
|
|
def show
|
|
@invoices = spree_current_user.account_invoices
|
|
# @enterprises = Enterprise.where(id: BillablePeriod.where(owner_id: spree_current_user).map(&:enterprise_id))
|
|
# .group_by('enterprise.id').joins(:billable_periods)
|
|
# .select('SUM(billable_periods.turnover) AS turnover').order('turnover DESC')
|
|
end
|
|
end
|