From 0ebc803e2233f9770f274de8997f434d0a549de0 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 26 Jul 2022 11:05:41 +1000 Subject: [PATCH] Simplify reports SQL query --- lib/reporting/reports/enterprise_fee_summary/scope.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporting/reports/enterprise_fee_summary/scope.rb b/lib/reporting/reports/enterprise_fee_summary/scope.rb index 023fc36f7a..177ba90713 100644 --- a/lib/reporting/reports/enterprise_fee_summary/scope.rb +++ b/lib/reporting/reports/enterprise_fee_summary/scope.rb @@ -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,