3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'app/seeds/workarea/tax_seeds.rb', line 3
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
|