Sha256: ef5482994ac7d333849d1675180c60af63bc321d1fac17158c98aed07c2483d8

Contents?: true

Size: 542 Bytes

Versions: 57

Compression:

Stored size: 542 Bytes

Contents

Spree::Sample.load_sample("orders")

first_order = Spree::Order.find_by_number!("R123456789")
last_order = Spree::Order.find_by_number!("R987654321")

first_order.adjustments.create!(
  :amount => 0,
  :source => Spree::TaxRate.find_by_name!("North America"),
  :order  => first_order,
  :label => "Tax",
  :state => "open",
  :mandatory => true)

last_order.adjustments.create!(
  :amount => 0,
  :source => Spree::TaxRate.find_by_name!("North America"),
  :order  => last_order,
  :label => "Tax",
  :state => "open",
  :mandatory => true)

Version data entries

57 entries across 57 versions & 2 rubygems

Version Path
spree_sample-3.1.14 db/samples/adjustments.rb
spree_sample-3.1.13 db/samples/adjustments.rb
spree_sample-3.1.12 db/samples/adjustments.rb
spree_sample-3.1.11 db/samples/adjustments.rb
spree_sample-3.1.10 db/samples/adjustments.rb
spree_sample-3.1.9 db/samples/adjustments.rb
spree_sample-3.1.8 db/samples/adjustments.rb
spree_sample-3.1.7 db/samples/adjustments.rb
spree_sample-3.1.6 db/samples/adjustments.rb
spree_sample-3.1.5 db/samples/adjustments.rb
spree_sample-3.1.4 db/samples/adjustments.rb
spree_sample-3.1.3 db/samples/adjustments.rb
spree_sample-3.1.2 db/samples/adjustments.rb
spree_sample-3.0.10 db/samples/adjustments.rb
spree_sample-3.1.1 db/samples/adjustments.rb
spree_sample-3.1.0 db/samples/adjustments.rb
spree_sample-3.1.0.rc4 db/samples/adjustments.rb
spree_sample-3.0.9 db/samples/adjustments.rb
spree_sample-3.1.0.rc3 db/samples/adjustments.rb
spree_sample-3.1.0.rc2 db/samples/adjustments.rb