mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Make OrderUpdate update all adjustments again as in v2.0.4 otherwise adjustments that are not shipment adjustments will not be calculated correctly
This commit is contained in:
6
app/models/spree/order_updater_decorator.rb
Normal file
6
app/models/spree/order_updater_decorator.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
Spree::OrderUpdater.class_eval do
|
||||
# Override spree method to make it update all adjustments as in Spree v2.0.4
|
||||
def update_shipping_adjustments
|
||||
order.adjustments.reload.each { |adjustment| adjustment.update! }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user