[interchange-cvs] CVS notice: activity by heins

interchange-cvs@lists.akopia.com interchange-cvs@lists.akopia.com
Sun Jul 15 14:12:02 2001


CVS activity by user 'heins':
interchange/dist/lib/UI/pages/admin tax_simple.html,NONE,1.1.2.1 tax.html,1.15.2.5,1.15.2.6
Update of /anon_cvs/repository/interchange/dist/lib/UI/pages/admin
In directory interchange.redhat.com:/tmp/cvs-serv17097/dist/lib/UI/pages/admin

Modified Files:
      Tag: DEV_4_7_0
	tax.html 
Added Files:
      Tag: DEV_4_7_0
	tax_simple.html 
Log Message:

* Instituted the VAT and extended taxing I promised quite a time ago.

  If the SalesTax directive is set to "multi", then the type of
  tax is read from [data table=country col=tax key="[value country]"].

  NOTE: Most everything is configurable for variable name and
        field name via Variable MV_*, but defaults are shown below.

  1. If no string is found, tax returns 0.

  2. If string "simple:(\w+)" is found, uses fly_tax() as with
     recent standard demos.

  3. If string "state" is found, does a re-lookoup with

        select tax from state where country = country and state = state

     and value is applied below.

  4. If just digits are found, rate applied directly -- i.e. "0.05"

  5. If N.NN% is found, applied as percentage.

  6. If category = N.NN%, default = N.NN% is found, the tax_category
     field in the products database is used to determine tax basis.
     If no tax_category, "default" rate is used.

 This product data
    

    sku      price     tax_category
    os28003  10.00     tools
    os28004  20.00     food

 with this country and state data:

    code     name     tax
    US       U.S.A.   state
    JP       Japan    tools=10%, default=15%


    code   country   state   name      tax
    0001   US        IL      Illinois  6.5%
    0002   US        OH      Ohio      default = 5.5%, food = 1%
    0003   US        AZ      Arizona   

 Will yield tax for one each of os28003 and os28004 of:

    Japan   $4.00
    US/IL   $1.95
    US/OH   $0.75
    US/AZ   $0.00

* UI support is included.