mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-31 06:31:41 +00:00
Don't try to cancel shipments that might already be cancelled
This commit is contained in:
@@ -147,7 +147,7 @@ module Spree
|
||||
private
|
||||
|
||||
def after_cancel
|
||||
shipments.each(&:cancel!)
|
||||
shipments.reject(&:canceled?).each(&:cancel!)
|
||||
payments.checkout.each(&:void!)
|
||||
|
||||
OrderMailer.cancel_email(id).deliver_later if send_cancellation_email
|
||||
|
||||
Reference in New Issue
Block a user