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:
Luis Ramos
2020-03-22 20:08:11 +00:00
parent 9980723060
commit 2de550eac1

View 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