mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Simplify reports SQL query
This commit is contained in:
@@ -366,7 +366,7 @@ module Reporting
|
||||
chain_to_scope do
|
||||
select(
|
||||
<<-JOIN_STRING.strip_heredoc
|
||||
SUM(spree_adjustments.amount)::NUMERIC AS total_amount,
|
||||
SUM(spree_adjustments.amount) AS total_amount,
|
||||
spree_payment_methods.name AS payment_method_name,
|
||||
spree_shipping_methods.name AS shipping_method_name,
|
||||
hubs.name AS hub_name,
|
||||
|
||||
Reference in New Issue
Block a user