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.6 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.5 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.4 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.3 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.2 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.1 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.0 app/seeds/workarea/tax_seeds.rb
workarea-core-3.5.0.beta.1 app/seeds/workarea/tax_seeds.rb