Change the Shop::Tax system to be hierarchial.

Update all sample tax tables and tests.
This commit is contained in:
Colin Kuskie 2008-03-06 22:34:21 +00:00
parent cbe9cc29df
commit d956e58bd7
11 changed files with 190 additions and 131 deletions

View file

@ -1,8 +1,9 @@
taxRate,value,field
country,state,city,code,taxRate
#header lines above
#This is just a zip code.
0.5,53701,code
#This is just a country.
USA,,,,0.0
USA,Wisconsin,,,5.0 #Wisconsin is expensive
5.0,Wisconsin,state #Wisconsin is expensive!
USA,Wisconsin,Madison,53701,0.5

1 taxRate,value,field country,state,city,code,taxRate
2 #header lines above #header lines above
3 #This is just a zip code. #This is just a country.
4 0.5,53701,code USA,,,,0.0
5 5.0,Wisconsin,state #Wisconsin is expensive! USA,Wisconsin,,,5.0 #Wisconsin is expensive
6 USA,Wisconsin,Madison,53701,0.5
7
8
9