mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Merge pull request #3374 from luisramos0/2-0-order-cycle-mgmt-report
[Spree Upgrade] Fix order_cycle_management_report shipping methods filter
This commit is contained in:
@@ -107,7 +107,7 @@ module OpenFoodNetwork
|
||||
|
||||
def filter_to_shipping_method(orders)
|
||||
if params[:shipping_method_in].present?
|
||||
orders.joins(shipments: :shipping_methods).where(shipping_method_id: params[:shipping_method_in])
|
||||
orders.joins(shipments: :shipping_rates).where(spree_shipping_rates: { shipping_method_id: params[:shipping_method_in] })
|
||||
else
|
||||
orders
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user