Results 1 to 10 of 19

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: Group Discount and Discount Coupon Tax Calculation Issue

    I have several different discounts running on my cart including quantity discounts and group discount

    my tax is being calculated on the subtotal BEFORE any of the discounts and I need it to apply the discounts before calculating the tax

    does any one have any ideas how I can do this or where the code is that calculates the tax?

    thanks

    Rachael

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Group Discount and Discount Coupon Tax Calculation Issue

    Using recalculate tax reduces the amount of tax based on the size of the discount. But the initial figure is based on the subtotal before discounts.

    Be sure to get recent copies of Quantity Discounts and Group Discounts (the latter may involve upgrading your cart) - the tax logic has been refined over time.
    That Software Guy. My Store: Zen Cart Support
    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
    Jan 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: Group Discount and Discount Coupon Tax Calculation Issue

    sorry this is probably a daft question but what/where is recalculate tax?

    thanks

  4. #4
    Join Date
    Jan 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: Group Discount and Discount Coupon Tax Calculation Issue

    if I set the discounts to recalulate the tax I am getting some very odd results.

    Does anyone know what bit of code I need to edit to calculate the tax after the discount has bee subtracted?

    thanks

    Rachael

  5. #5
    Join Date
    Sep 2007
    Posts
    44
    Plugin Contributions
    0

    Default Re: Group Discount and Discount Coupon Tax Calculation Issue

    I am running 1.3.7 and am also having this problem...and on larger orders the discrepancy can be sizable.

    Here is a sample order at 8.25% tax before application of a 10% coupon:

    Sub-Total: $189.00
    Shipping: $0.00

    CA State Sales Tax: $15.59

    Total: $204.59
    =============================
    The tax is calculated accurately. Now apply a 10% discount:

    Sub-Total: $189.00
    Shipping: $0.00
    Discount Coupon: pc0108a10 : -$18.90

    CA State Sales Tax: $12.47

    Total: $182.57
    =============================

    The correct tax on a subtotal of $170.10 should be $14.03 but as you can see, the cart is calculating $12.47. I have had orders where I have lost as much as $6 in tax on an order.

    Any ideas or fixes for this??

    Robert

  6. #6
    Join Date
    May 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Group Discount and Discount Coupon Tax Calculation Issue

    Running Zen Cart 1.3.8a, Database Patch Level: 1.3.8

    Similar problems to many here . Settings are :
    Sort Order 190
    (after sub total and before shipping)

    Include Shipping false

    Include Tax false

    Re-calculate Tax Standard

    Tax Class --none--

    Error #1: Taxes on shipping are discounted even though Shipping costs themselves are not discounted. I do not want to discount shipping.

    Error #2: The final total does not match the totals of items calculated after group discount is applied even after ignoring the error above. This is caused by a rounding error introduced through the method of proportional recalculation of the total instead of adding up the totals again.

    Lastly, while it doesnt happen in my case due to a lucky choice of tax rate, the proportional method is at risk of causing rounding errors in the tax calculations too, eg
    Original price = $5.00, tax excluded, group discount 10%, tax 7%.

    1. (5.00-0.50)*.07=4.50 *.07 (7%) = .315 rounded up to .32 (the right answer)

    2. 5.00 *.07 = .35 (original tax)
    tax difference due to discount=.50*.07=.035 rounded up to .04
    difference=.35-.04=.31 (the proportional answer)

    So, when the rewrite takes place i hope these considerations can be taken into account.

 

 

Similar Threads

  1. v151 Discount coupon and tax issue
    By jayplanedin in forum Bug Reports
    Replies: 0
    Last Post: 28 Mar 2014, 01:59 AM
  2. Discount Coupon Tax calculation problem
    By Amit001 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 1 Aug 2008, 02:00 PM
  3. Group Discount + Coupon = wrong tax calculation (Ontario store)
    By Rebelwax in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 24 Mar 2008, 07:20 PM
  4. Discount Coupon AND Group Discount Tax Problem
    By mrkrinkle in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 11
    Last Post: 5 Apr 2007, 12:16 PM
  5. Replies: 7
    Last Post: 13 Nov 2006, 12:11 PM

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