Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30
  1. #11
    Join Date
    May 2011
    Location
    Nova Scotia
    Posts
    35
    Plugin Contributions
    0

    Default Re: Bizarre Tax calculation

    Quote Originally Posted by satphone View Post

    ie. tax on $999 (tax inc.) + $10 (tax inc.) freight - $10 inc. discount - should equal $90.82
    I think what he is trying to to tell you is that the shopping cart & to be correct by law should calculate as follows:
    Price
    Shipping
    TAX (you must show customer you have tax in there)
    Total
    Discount

    If you put the discount anywhere before you charge tax you would be applying it to the discount. When it should only be applied after tax.
    I think that is what RodG is trying to tell you. I could be wrong.
    Last edited by hfxracing; 1 Jul 2014 at 01:40 PM.

  2. #12
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Bizarre Tax calculation

    Quote Originally Posted by satphone View Post
    I am new to Zen Cart.
    I'm just trying to find out why the store doesn't calculate discounts and GST correctly. Can you help?
    Yes.

    Quote Originally Posted by satphone View Post
    Pretty simple - tax payable is 1/11 of the amount of goods and services inc. tax (or 10% of the amount prior to tax.)
    No need to be condescending.

    I'll probably regret this, but..... since the last thing I'd want to do is scare people away from the most versatile eCommerce system available..

    module Sort order
    -------------- ------------
    ot_subtotal 100
    ot_shipping 200
    ot_tax 300
    ot_xxxxxxx 400-900 (discounts, gift vouchers, low order fees, coupons, etc
    ot_Total 999
    ------------------------

  3. #13
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: Bizarre Tax calculation

    I'm not an Aussie so I won't go into legal matters because I don't know your laws (Rod is definitely more competent on that matter), but there is something I don't understand...

    Why would the discount be calculated AFTER tax? I'm assuming we're talking about discount coupons, not vouchers. I prefer to compare that discount to a specials price (sale). Product is discounted and customer is paying less. Why do you need to pay tax on full price?
    Let's say I setup a discount coupon to 50%. Product was $500, now is $250. I'm charging the customer $250. Shouldn't tax be $22.73 and net $227.27? If we calculate tax before discount, won't it be $45.45? (Besides, that's how Zen Cart is configured out of the box: calculate discount before tax).
    Same thing here: product is $999 - $10 discount + $10 shipping --> total is $999 and tax should be $90.82

    I agree that the calculations are totally weird - I remember I had the same problem 5-6 years ago with my own shop and had to rewrite the ot_coupon file to use my calculations. Maybe that was stupid and there's a better way to do it from the admin, but I couldn't figure it out and my bookkeeper never complained...
    Unfortunately, I have no idea what I did back then (it was probably some redneck method ) - I'll check my archives later today to see if I can find the file (although I honestly doubt it, it's been almost 5 years since I shut that site down...).

  4. #14
    Join Date
    Jun 2014
    Location
    Australia
    Posts
    60
    Plugin Contributions
    0

    Default Re: Bizarre Tax calculation

    I made the sort order change but there was more to it than that.

    Now it's calculating the GST on the PRE discounted some, applying that and then applying the discount. This seems a very strange thing indeed. eg.

    $100 sale, no discount = tax of $9.09
    $100 sale with $50 discount = = tax of $9.09

    In Australia GST is payable on the FINAL sale value.

  5. #15
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Bizarre Tax calculation

    Quote Originally Posted by satphone View Post
    I made the sort order change but there was more to it than that.

    Now it's calculating the GST on the PRE discounted some, applying that and then applying the discount.
    Isn't that what you wanted?

    No? In that case, you need to re-order things once again.

    module Sort order
    -------------- ------------
    ot_subtotal 100
    ot_shipping 200
    ot_xxxxxxx 300-800 (discounts, gift vouchers, low order fees, coupons, etc )
    ot_tax 900
    ot_Total 999
    ------------------------

    For the ot_coupon module (which I'm *assuming* is what you are using for discounts) you need

    Include Shipping
    false

    Include Tax
    true

    Re-calculate Tax
    None

    Tax Class
    GST Taxable Goods

    I'm pretty sure those settings will give the results you desire, but for reasons I can't explain, my notes for the ot_gv module hav slightly different settings.

    Include Shipping
    true

    Include Tax
    true

    Re-calculate Tax
    None

    Tax Class
    --none--

    Credit including Tax
    false

    The common factor being that in both cases, Include Tax = true, and Re-calculate tax= None. (I suspect that the Tax Class setting is being ignored since the tax isn't being re-calculated).

    Rgds
    RodG

  6. #16
    Join Date
    Jun 2014
    Location
    Australia
    Posts
    60
    Plugin Contributions
    0

    Default Re: Bizarre Tax calculation

    Thanks for the tips. Still getting strange results with your suggestions.

    What's needed is...

    Order Value + freight Value - discount = Total, with GST being calculated as, and shown as 1/11 of Total.

    At the moment the closest I can get to work is ..

    Order Value + freight Value - discount = Total, with GST being calculated as, and shown as 1/11 of (Order Value + Freight)

    No permutation of sort order and settings gets it right.

    Without the ability to correctly process discount coupons makes the coupon module seriously broken. I'm dreading the thought of migrating, but if this is the case I'll be forced into migrating to something up to date.

    Cheers,

    Kev

  7. #17
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Bizarre Tax calculation

    Quote Originally Posted by satphone View Post
    Thanks for the tips. Still getting strange results with your suggestions.

    No permutation of sort order and settings gets it right.
    Hmmm, not sure what to make of this. I've just checked on a clients site

    ot_coupon settings

    Discount Coupon
    This module is installed
    true

    Sort Order
    280

    Include Shipping
    false

    Include Tax
    false

    Re-calculate Tax
    Credit Note

    Tax Class
    GST Taxable Goods


    Important: This settings are different than the ones I posted previously. The 1st examples were taken from my notes (a couple of years old). The settings above were taken from a 'live' site running V1.5.2BETA RC2). Time to update my notes I reckon. ;-)

    -----------------------------------------
    Sub-Total: $49.95
    (Parcel under 500g): $7.20
    Discount Coupon: TEST : -$10.00
    Total: $47.15
    (incl) GST: $4.29
    ---------------------------------------

  8. #18
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,676
    Plugin Contributions
    123

    Default Re: Bizarre Tax calculation

    Quote Originally Posted by satphone View Post

    What's needed is...

    Order Value + freight Value - discount = Total, with GST being calculated as, and shown as 1/11 of Total.
    You have to write code to get this.
    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.

  9. #19
    Join Date
    Jun 2014
    Location
    Australia
    Posts
    60
    Plugin Contributions
    0

    Default Re: Bizarre Tax calculation

    Rod - I'll check that out.

    Need to write code? Any idea what, why, where? Is it a major job?

    Surely getting coupons to work correctly is a pretty basic requirement???

  10. #20
    Join Date
    Jun 2014
    Location
    Australia
    Posts
    60
    Plugin Contributions
    0

    Default Re: Bizarre Tax calculation

    Rod - here's what I've got

    ot_coupon 280
    Shipping ot_shipping 200
    Sub-Total ot_subtotal 100
    Tax ot_tax 300
    Total ot_total 999

    Include Shipping
    false

    Include Tax
    false

    Re-calculate Tax
    Credit Note

    Tax Class
    Taxable Goods

    Now here's what it calculates

    Sub-Total: $95
    Flat Rate (Best Way): $10.00
    Discount Coupon: 10 : -$10.00
    GST 10%: $8.55
    TOTAL: $95.00

    Whilst the Total is correct the GST is just whacky. It should be $95/11 = $8.64

    So it seems the cart is calculating the discount amount as $10.91 and deducting that. This makes the calculated GST correct IF the coupon was $10.91

    If I try to set tax = true I get the warning

    Setting Include tax = true, should only happen when recalculate = None

    If I go and set the discount to a $9.09 (10 - 10/11)

    I get the correct GST, but the order Total is wrong


    Flat Rate (Best Way): $10.00
    Discount Coupon: 10 : -$9.09
    GST 10%: $8.64
    TOTAL: $95.91

    I can have the Total correct OR the GST correct, But not both, which makes the module extremely broken and unusable.

    Cart Version is 1.5.1

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Bizarre Tax behaviour.
    By rpain in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 6 Jan 2011, 06:12 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. Replies: 0
    Last Post: 13 Jun 2008, 12:57 PM
  4. No Tax Calculation...
    By Alex Clarke in forum General Questions
    Replies: 4
    Last Post: 20 Feb 2008, 01:10 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