mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user