mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
committed by
Rob Harrington
parent
6816061915
commit
72292b1dd3
@@ -344,10 +344,10 @@ Spree::Order.class_eval do
|
||||
end
|
||||
|
||||
def update_adjustment!(adjustment)
|
||||
locked = adjustment.locked
|
||||
adjustment.locked = false
|
||||
state = adjustment.state
|
||||
adjustment.state = 'open'
|
||||
adjustment.update!(self)
|
||||
adjustment.locked = locked
|
||||
adjustment.state = state
|
||||
end
|
||||
|
||||
# object_params sets the payment amount to the order total, but it does this before
|
||||
|
||||
Reference in New Issue
Block a user