Sha256: 57f5b1f8464a96b93a56244879e3da0bd92266f2dd065c4d59bb7f6a73c81226

Contents?: true

Size: 313 Bytes

Versions: 26

Compression:

Stored size: 313 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

26 entries across 26 versions & 1 rubygems

Version Path
solidus_sample-2.2.2 db/samples/tax_rates.rb
solidus_sample-2.1.1 db/samples/tax_rates.rb
solidus_sample-2.0.3 db/samples/tax_rates.rb
solidus_sample-1.4.2 db/samples/tax_rates.rb
solidus_sample-1.3.2 db/samples/tax_rates.rb
solidus_sample-2.0.2 db/samples/tax_rates.rb
solidus_sample-1.4.1 db/samples/tax_rates.rb
solidus_sample-2.2.1 db/samples/tax_rates.rb
solidus_sample-2.2.0 db/samples/tax_rates.rb
solidus_sample-2.2.0.rc1 db/samples/tax_rates.rb
solidus_sample-2.2.0.beta1 db/samples/tax_rates.rb
solidus_sample-2.1.0 db/samples/tax_rates.rb
solidus_sample-2.1.0.rc1 db/samples/tax_rates.rb
solidus_sample-2.0.1 db/samples/tax_rates.rb
solidus_sample-2.1.0.beta1 db/samples/tax_rates.rb
solidus_sample-2.0.0 db/samples/tax_rates.rb
solidus_sample-1.4.0 db/samples/tax_rates.rb
solidus_sample-2.0.0.rc1 db/samples/tax_rates.rb
solidus_sample-1.4.0.rc1 db/samples/tax_rates.rb
solidus_sample-2.0.0.beta1 db/samples/tax_rates.rb