Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2008
    Location
    Stockholm
    Posts
    29
    Plugin Contributions
    0

    Default Tax calculation BUG!

    Hello

    I think I´ve found a bug related to coupons and taxes.

    SETTINGS:
    - Zencart 1.3.8a
    - Display prices with tax = TRUE
    - Two tax rates, one 25% and one 6% (set to same priority = 1)
    - Some products are set to 6% tax and some to 25% tax

    PROBLEM:
    When I add products with 6% tax to the shopping cart and use a discount coupon, the tax calculation fails. See the attached file. It only happens when I add products with 6% tax or combining products with 6% and 25% tax.

    I have also made the code changes mentioned in these threads to solve other problems related to tax/coupons/shipping issues:

    http://www.zen-cart.com/forum/showthread.php?t=43436

    http://www.zen-cart.com/forum/showthread.php?t=124685

    /Erik
    Attached Images Attached Images  
    Last edited by ErikAllan; 24 Mar 2010 at 12:48 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Tax calculation BUG!

    This is a known problem in the 1.x series. You may want to consider not recalculating taxes and making the customer liable for the entire original tax if this is permitted in your country.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Dec 2008
    Location
    Stockholm
    Posts
    29
    Plugin Contributions
    0

    Default Re: Tax calculation BUG!

    Hi

    Ok. Is there any work around to fix it? Where is the "known bug" documented?

    What do you mean by "not recalculating taxes and making the customer liable for the entire original tax"? I think the Swedish law says I have to specify the 6% and 25% tax seperately on the invoice...

    Thank you for trying to help

    Best Regards
    Erik

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Tax calculation BUG!

    I mean in admin->modules->order total->coupons, set recalculate tax to none.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Dec 2008
    Location
    Stockholm
    Posts
    29
    Plugin Contributions
    0

    Default Re: Tax calculation BUG!

    Hello again

    When I set Recalculate tax to none I get really strange results, see the attached file.

    /Erik
    Attached Images Attached Images  

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Tax calculation BUG!

    Quote Originally Posted by ErikAllan View Post
    Ok. Is there any work around to fix it? Where is the "known bug" documented?
    http://www.zen-cart.com/forum/showthread.php?t=128368
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Dec 2008
    Location
    Stockholm
    Posts
    29
    Plugin Contributions
    0

    Default Re: Tax calculation BUG!

    Ok, I understand... have to wait until 2.0 then.

    I found a solution that works for me temporary though. If I set the "Include shipping" flag to TRUE, the tax calculation works. So the miscalculation has to do with this setting. I also laborated a little with the code in ot_coupon.php around line 374 where the tax logic for "Standard" recalculation is. If I have time I will dig deeper...

    /Erik

 

 

Similar Threads

  1. Replies: 4
    Last Post: 24 Jul 2010, 01:06 PM
  2. Problem with tax calculation on Tax Exempt goods
    By vickula in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 3
    Last Post: 25 Mar 2009, 03:49 PM
  3. Gift Voucher Calculation Bug
    By FuzzyBunny in forum Bug Reports
    Replies: 0
    Last Post: 11 Jul 2008, 02:56 AM
  4. Replies: 0
    Last Post: 13 Jun 2008, 12:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR