Sha256: 3c1cc4e100f4f312ea83853a92571a3c22506af722b4f1fc03c595ad9f47bb93

Contents?: true

Size: 614 Bytes

Versions: 28

Compression:

Stored size: 614 Bytes

Contents

module Workarea
  class TaxSeeds
    def perform
      puts 'Adding tax rates...'

      category = Tax::Category.create!(
        name: 'Sales Tax',
        code: '001'
      )

      category.rates.create!(
        region_percentage: 0.07,
        country: 'US',
        region: 'PA'
      )

      category.rates.create!(
        region_percentage: 0.08,
        country: 'US',
        region: 'NY',
        tier_min: 0,
        tier_max: 200
      )

      category.rates.create!(
        region_percentage: 0.09,
        country: 'US',
        region: 'NY',
        tier_min: 200.01
      )
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.27 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.26 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.25 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.23 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.22 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.21 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.20 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.19 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.18 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.17 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.16 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.15 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.14 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.13 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.12 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.11 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.10 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.9 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.8 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.7 app/seeds/workarea/tax_seeds.rb