Merge pull request #5033 from luisramos0/ent_fees_data_types

[Spree 2.1] Adapt EnterpriseFeeSummary report code to slightly different rails 4 sql data conversion
This commit is contained in:
Pau Pérez Fabregat
2020-03-26 11:20:44 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ module OrderManagement
end
def inherits_tax_category?
data["enterprise_fee_inherits_tax_category"] == "t"
data["enterprise_fee_inherits_tax_category"]
end
end
end

View File

@@ -364,7 +364,7 @@ module OrderManagement
chain_to_scope do
select(
<<-JOIN_STRING.strip_heredoc
SUM(spree_adjustments.amount) AS total_amount,
SUM(spree_adjustments.amount)::TEXT AS total_amount,
spree_payment_methods.name AS payment_method_name,
spree_shipping_methods.name AS shipping_method_name,
hubs.name AS hub_name,