Skip to content

Commit

Permalink
Fixes adjustment samples.
Browse files Browse the repository at this point in the history
Fixes radar/spree#2
  • Loading branch information
Jeff Dutil authored and radar committed Sep 27, 2013
1 parent 980c0c1 commit bde0972
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions sample/db/samples/adjustments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,28 @@

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

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

first_order.adjustments.create!(
:amount => 0,
:source => first_order,
:originator => Spree::ShippingMethod.find_by_name!("UPS Ground (USD)"),
:source => Spree::ShippingMethod.find_by_name!("UPS Ground (USD)"),
:label => "Shipping",
:state => "finalized",
:mandatory => true)

last_order.adjustments.create!(
:amount => 0,
:source => last_order,
:originator => Spree::ShippingMethod.find_by_name!("UPS Ground (USD)"),
:source => Spree::ShippingMethod.find_by_name!("UPS Ground (USD)"),
:label => "Shipping",
:state => "finalized",
:mandatory => true)

0 comments on commit bde0972

Please sign in to comment.