mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Allow an order in confirmation state to transition to payment
This commit is contained in:
@@ -140,7 +140,8 @@ module Spree
|
||||
#
|
||||
# Otherwise redirect user to that step
|
||||
def can_transition_to_payment
|
||||
return if @order.payment? || @order.complete? || @order.canceled? || @order.resumed?
|
||||
return if @order.confirmation? || @order.payment? ||
|
||||
@order.complete? || @order.canceled? || @order.resumed?
|
||||
|
||||
flash[:notice] = Spree.t(:fill_in_customer_info)
|
||||
redirect_to spree.edit_admin_order_customer_url(@order)
|
||||
|
||||
Reference in New Issue
Block a user