Sha256: 7f815f8b255d031054e5fa2fb4ae370b312de60f2cf479703b63b87ea12d9b3b

Contents?: true

Size: 257 Bytes

Versions: 24

Compression:

Stored size: 257 Bytes

Contents

module OrdersHelper

  # prepends the paypal prefix to the order id
  def invoice_number_for_paypal(order)
    if MySettings.paypal_invoice_prefix.blank?
      order.id.to_s
    else
      MySettings.paypal_invoice_prefix + order.id.to_s
    end
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.1.9 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.1.8 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.1.7 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.1.6 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.1.5 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.1.4 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.1.3 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.1.2 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.1.1 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.1.0 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.0.18 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.0.17 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.0.16 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.0.15 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.0.14 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.0.13 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.0.12 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.0.11 lib/forge/app/helpers/orders_helper.rb
forge-cli-0.0.10 lib/forge/app/helpers/orders_helper.rb