Sha256: f74ad1c1b6b060d4b55dcf4e1eb6af25b09346477cccceed9bf34e6d756eeb76

Contents?: true

Size: 326 Bytes

Versions: 28

Compression:

Stored size: 326 Bytes

Contents

north_america = Spree::Zone.find_by_name!("North America")
clothing = Spree::TaxCategory.find_by_name!("Default")
tax_rate = Spree::TaxRate.create(
  :name => "North America",
  :zone => north_america, 
  :amount => 0.05,
  :tax_category => clothing)
tax_rate.calculator = Spree::Calculator::DefaultTax.create!
tax_rate.save!

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
solidus_sample-1.2.3 db/samples/tax_rates.rb
solidus_sample-1.1.4 db/samples/tax_rates.rb
solidus_sample-1.0.7 db/samples/tax_rates.rb
solidus_sample-1.0.6 db/samples/tax_rates.rb
solidus_sample-1.2.2 db/samples/tax_rates.rb
solidus_sample-1.2.1 db/samples/tax_rates.rb
solidus_sample-1.1.3 db/samples/tax_rates.rb
solidus_sample-1.0.5 db/samples/tax_rates.rb
solidus_sample-1.2.0 db/samples/tax_rates.rb
solidus_sample-1.2.0.rc2 db/samples/tax_rates.rb
solidus_sample-1.0.4 db/samples/tax_rates.rb
solidus_sample-1.1.2 db/samples/tax_rates.rb
solidus_sample-1.2.0.rc1 db/samples/tax_rates.rb
solidus_sample-1.2.0.beta1 db/samples/tax_rates.rb
solidus_sample-1.0.3 db/samples/tax_rates.rb
solidus_sample-1.1.1 db/samples/tax_rates.rb
solidus_sample-1.1.0 db/samples/tax_rates.rb
solidus_sample-1.1.0.pre2 db/samples/tax_rates.rb
solidus_sample-1.1.0.pre1 db/samples/tax_rates.rb
solidus_sample-1.1.0.beta1 db/samples/tax_rates.rb