mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update order correctly in ReturnAuthorizationsController
This commit is contained in:
@@ -17,10 +17,10 @@ module Spree
|
||||
|
||||
# Pay the order
|
||||
order.payments.first.complete
|
||||
order.updater.update_payment_state
|
||||
order.update!
|
||||
|
||||
# Ship the order
|
||||
order.reload.shipment.ship!
|
||||
order.shipment.ship!
|
||||
end
|
||||
|
||||
it "creates and updates a return authorization" do
|
||||
|
||||
Reference in New Issue
Block a user