app/models/solidus_subscriptions/line_item.rb
# Get a placeholder order for calculating the values of future
# subscription orders. It is a frozen duplicate of the current order and
# cannot be saved
Get a placeholder order for calculating the values of future
subscription orders. It is a frozen duplicate of the current order and
cannot be saved
Get a placeholder order for calculating the values of future subscription orders . It is a frozen duplicate of the current order and cannot be saved
def dummy_order
      order = spree_line_item ? spree_line_item.order.dup : ::Spree::Order.create
      order.ship_address = subscription.shipping_address || subscription.user.ship_address if subscription
      order.bill_address = subscription.billing_address || subscription.user.bill_address if subscription
      order.freeze
    end
def dummy_order order = spree_line_item ? spree_line_item . order . dup : :: Spree :: Order . create order . ship_address = subscription . shipping_address || subscription . user . ship_address if subscription order . bill_address = subscription . billing_address || subscription . user . bill_address if subscription order . freeze end
Get a placeholder order for calculating the values of future
subscription orders.
Get a placeholder order for calculating the values of future subscription orders .