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.0.rc1 db/samples/adjustments.rb
spree_sample-3.0.8 db/samples/adjustments.rb
spree_sample-3.0.7 db/samples/adjustments.rb
spree_sample-3.0.6.1 db/samples/adjustments.rb
spree_sample-3.0.6 db/samples/adjustments.rb
spree_sample-3.0.5 db/samples/adjustments.rb
spree_sample-3.0.4 db/samples/adjustments.rb
spree_sample-2.4.10 db/samples/adjustments.rb
spree_sample-2.3.13 db/samples/adjustments.rb
spree_china_sample-3.0.3.beta db/samples/adjustments.rb
spree_china_sample-3.0.0 db/samples/adjustments.rb
spree_sample-3.0.3 db/samples/adjustments.rb
spree_sample-2.4.9 db/samples/adjustments.rb
spree_sample-2.3.12 db/samples/adjustments.rb
spree_sample-3.0.2 db/samples/adjustments.rb
spree_sample-2.4.8 db/samples/adjustments.rb
spree_sample-2.3.11 db/samples/adjustments.rb
spree_sample-3.0.1 db/samples/adjustments.rb
spree_sample-2.4.7 db/samples/adjustments.rb
spree_sample-2.3.10 db/samples/adjustments.rb