Forums / Bug Reports / Empty tax rate - shouldn't be able to add it

Empty tax rate - shouldn't be able to add it

Locked

Views: 1,769

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
17 Sep 2006, 5:03 PM
#1
intersfer avatar

intersfer

New Zenner

Join Date:
Sep 2006
Location:
Slovenia
Posts:
18
Plugin Contributions:
0

Empty tax rate - shouldn't be able to add it

If you add empty tax rate in admin -> Locations / Taxes -> Tax Rates, without Tax Class Title, zone and everything else, it's stil added. That wouldn't be much of problem if I thing, this wouldn't couse double taxing. It also cannot be deleted from tax rates, because it's not shown in table. If you go to zone definitions after adding an empty tax rate, you can see there are two tax rates instead of one. Empty tax rate must be deleted manually from the tax_rates table in mysql.

18 Sep 2006, 1:51 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Empty tax rate - shouldn't be able to add it

Which version of Zen Cart ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Sep 2006, 7:17 AM
#3
intersfer avatar

intersfer

New Zenner

Join Date:
Sep 2006
Location:
Slovenia
Posts:
18
Plugin Contributions:
0

Re: Empty tax rate - shouldn't be able to add it

Zen Cart 1.3.5
Database Patch Level: 1.3.5
v1.3.5 [2006-09-11 20:21:45] (Fresh Installation)

18 Sep 2006, 7:39 AM
#4
intersfer avatar

intersfer

New Zenner

Join Date:
Sep 2006
Location:
Slovenia
Posts:
18
Plugin Contributions:
0

Re: Empty tax rate - shouldn't be able to add it

How I did it... First I created tax zone, then I created tax rate without tax classs (no class existed yet), and after pushing insert button, no tax rate was displayed. Then I created tax class, and added new 20% tax rate for that class. After creating some articles, all of them had 40% tax added. I lost couple of hours trying to set propper settings in admin, without success. Then I noticed, there are two tax rates in admin/geo_zones.php (Number of Tax Rates: 2) for the existing tax zone. In admin/tax_rates.php there was only one tax rate of 20% shown. I looked up zen database with phpmyadmin, and I noticed two entries in tax_rates table. I deleted both and added new 20% tax rate for the existing tax class, and now everything works fine.