mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-19 04:49:15 +00:00
Filter fees by metadata.enterprise_role 'supplier' #11529
This commit is contained in:
@@ -85,6 +85,8 @@ module Reporting
|
||||
query = order
|
||||
.all_adjustments
|
||||
.enterprise_fee
|
||||
.joins(:metadata)
|
||||
.where(adjustment_metadata: { enterprise_role: 'supplier' })
|
||||
|
||||
if enterprise_fee_filters?
|
||||
query = query.where(originator_id: enterprise_fee_filtered_ids)
|
||||
|
||||
Reference in New Issue
Block a user