If this is your first visit, check our documentation. To post, register or login.
Forums / Currencies & Sales Taxes, VAT, GST, etc. / Tax calculation problem - help please!

Tax calculation problem - help please!

Started by satphone on 18 Nov 2017, 2:00 AM · Views: 15,237

Results 1 to 20 of 26
18 Nov 2017, 2:00 AM
#1
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Tax calculation problem - help please!

ZC - 1.51 with Credit Card PayPal fee module installed.

GST/Tax of 10% is not being charged on the PayPal / Credit Card fee. eg. 80.00 item,plus $1.09 fee shows the tax as $7.27 (tax on 80) when it should be $7.37 (tac on 81.09)

Order Total Module sort order is:

Sub Total 100
CC / Paypal Fee 150
Shipping 200
Tax 300
Total 999

Settings in CC/PayPal fee module are:

This module is installed
true

Sort Order
150

Fee
1.3636%

Minimum Amount
0

Allow Payment Module Fee
true

Payment Modules
paypalwpp,paypal

Attach Payment Module Fee On Orders Made
both

Tax Class
Taxable Goods

TIA
Any help appreciated as this is throwing out our reconcilliations and tax returns!

18 Nov 2017, 2:19 AM
#2
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

BUT - some orders DO calculate correctly:

Sub-Total: $799.00
Credit Card / PayPal Fee: $11.98
Fast Flat Rate (Overnight Courier Bag / Express Post Bag - Best Way): $19.95
GST 10%: $75.54
Total: $830.93

The only difference I can see is that it's a) a different product b) there is shipping involved.

18 Nov 2017, 2:29 AM
#3
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

BUT - some orders DO calculate correctly:

Sub-Total: $799.00
Credit Card / PayPal Fee: $11.98
Fast Flat Rate (Overnight Courier Bag / Express Post Bag - Best Way): $19.95
GST 10%: $75.54
Total: $830.93

Here is an order where the GST/Tax is NOT correct:

Sub-Total: $80.00
Credit Card / PayPal Fee: $1.09
Free Shipping: $0.00
GST 10%: $7.27
Total: $81.09

Also the percentages are not calculating correctly in the second example - 1.5% of $80 should be $1.20 not $1.09 - In the first example, the percentage is correct ie. $10.98

Settings in the CC/PayPal are:

Fee
1.3636%
Tax Class - Taxable Goods

Goal is to have 1.5% applied to item and shipping. The 1.5% is taxable.

The only difference I can see is that it's a) a different product b) there is shipping involved.

28 Nov 2017, 7:43 AM
#4
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

Anyone???

Or a suggestion where to get support, community or paid?

28 Nov 2017, 2:32 PM
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Tax calculation problem - help please!

It is late, and I'm too slack to do the calculations, but the difference I'm seeing between the good and bad examples is the shipping cost. I don't know if you are applying gst to this or not, if you are and shouldn't be, theres ya probem. If your not and you should be, theres ya problem.

Where shipping is free (where you are getting correct calcs) the GST on shipping becomes a moot point as it will always be zero regardless of the shipping tax settings.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

29 Nov 2017, 2:35 AM
#6
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

Thanks Rod. It is very strange that GST gets calculated correctly on the item, surcharge and freight when there IS a shipping fee. When there is no shipping fee the GST gets calculated on ONLY the item and not the surcharge.

Any idea how not having a freight charge could affect the gst calculation of the surcharge?

29 Nov 2017, 6:23 AM
#7
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Tax calculation problem - help please!

satphone:

Thanks Rod. It is very strange that GST gets calculated correctly on the item, surcharge and freight when there IS a shipping fee. When there is no shipping fee the GST gets calculated on ONLY the item and not the surcharge.

Any idea how not having a freight charge could affect the gst calculation of the surcharge?

It is possible that you are making some assumptions about what the GST is being based/calculated on and it may not be what you think it is, and although it is another day, I still can't be bothered to run through your figures. I pointed out the only difference I see (saw) - I figured you could at least run with that to either prove or disprove this observation. At the very least, go back over the previous orders and see if the pattern is consistant. It shouldn't be difficult to confirm (or refute) whether all orders with no (or free shipping) calculate correctly, and all order where there is a shipping charge calculate incorrectly - Basically what I'm saying is confirm the theory/observation 1st, and then worry about the the reason why afterwards.
If the observation/theory proves to be incorrect then we're barking up the wrong tree, so trying to explain the 'why' becomes a moot point.

My approach towards diagnosis on this would be to simplify the figures. IOW, instead of using the examples you gave, with two different products and prices, and a fee of 1.3636% try setting up a test product of say $10.00 , and a fee of a nice round 1%. Then place two test orders, same product. One with no or three shipping, one with a shipping charge - Heck, I'd even go as far to disable all but a flat rate shipping module, again using nice round figures (say, $1.00). It is much easier to see whats going on if your test data is consistant, and with nice round figures it is easy to see that 10% GST on $10.00 product should give a nice round $1.00 GST - if it doesn't then clearly that is a problem. The 1% surcharge in this case will/should become visually 'obvious' as to whether it is being applied to the $10ex GST price, or the $11.00 GST price.

I don't know about you, but I can't just look at numbers like $799.00, $11.98 & $19.95 and determine what the final amounts should be, and if the final results are not what they should be (after using a calculator) , I still wouldn't be able to look and this group of numbers and determine which one is giving the weird/wrong results.

This is why I really can't be bothered running through the figures/calcs for you. I'd need a calculator. With simpler/round figures the errors tend to be visually obvious.

Cheers
Rod


NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

29 Nov 2017, 8:09 PM
#8
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

Hi Rod, what you describe is pretty much what has been done to date - except we DO have a calculator to hand.

The results are consistent across all products, ie. those with freight calculate correctly (flat rate); and those with free shipping (virtual product) calculate GST wrongly; so we're already at at the "why" phase:-

"Why - when there is no shipping fee the GST gets calculated on ONLY the item and not the surcharge."

Completely stumped!

29 Nov 2017, 8:21 PM
#9
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

To put it together without numbers let's take it like this:

Product = Product Price inc GST
Shipping - Shipping Price inc GST
Surcharge = Surcharge Price inc GST
GST = 10%
GST Calculated = GST charge shown on Invoice / checkout

Calculates Correctly when Shipping is>0 ie. GST Calculated = (Product +Surcharge+Freight)/11

Calculates Incorrectly where Shipping=0 ie. GST Calculated= Product/11

29 Nov 2017, 8:39 PM
#10
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Tax calculation problem - help please!

satphone:

To put it together without numbers let's take it like this:

Product = Product Price inc GST
Shipping - Shipping Price inc GST
Surcharge = Surcharge Price inc GST
GST = 10%
GST Calculated = GST charge shown on Invoice / checkout

Calculates Correctly when Shipping is>0 ie. GST Calculated = (Product +Surcharge+Freight)/11

Calculates Incorrectly where Shipping=0 ie. GST Calculated= Product/11

What happens if you change the sort order of the order totals so that the surcharge is processed before the shipping?

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

29 Nov 2017, 8:53 PM
#11
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Tax calculation problem - help please!

satphone:

"Why - when there is no shipping fee the GST gets calculated on ONLY the item and not the surcharge."

Completely stumped!

And I'm somewhat perplexed. I made an observation that I thought you had missed, namely that it could perhaps be related to the shipping cost. If you had already determined this in your initial posts then why didn't you mention it? You probably would have gotten more responses if you had. It would have shown/demonstrated that you'd performed the diagnostics and narrowed it down to the shipping as being the dominant cause. Your initial posts came across as "here are the figures can someone work out what is wrong fo me because I don't have a clue" .... Well, apparently you did have a clue (shipping cost) but you kept it to yourself. I now wonder what other clues you are keeping to yourself?

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

30 Nov 2017, 12:51 AM
#12
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

RodG:

What happens if you change the sort order of the order totals so that the surcharge is processed before the shipping?

Hi the sort order is processed before the shipping, guess I'll try after the shipping and see what happens.

You're concerns about me "holding back information" are not warranted. If I'm asking for help I'm trying to deliver the best information I can - why would I not?!!! It's only whilst staring at this thread for days that it became clear to me this seems to be a key factor. Secondly I did "almost" deliver the shipping issue concisely, "The only difference I can see is that it's a) a different product b) there is shipping involved."

Let me correct that;

"The only difference I can see is that with any product there is free shipping involved."

30 Nov 2017, 7:34 AM
#13
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

Update - changing the sort order made no difference. Still - with free freight - GST is not calculated and added on the surcharge.

30 Nov 2017, 1:13 PM
#14
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Tax calculation problem - help please!

satphone:

Update - changing the sort order made no difference. Still - with free freight - GST is not calculated and added on the surcharge.

Humour me. Please provide the figures that you are currently seeing for the test/example in message#3 with free shipping.

Thx
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

30 Nov 2017, 9:50 PM
#15
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

RodG:

Humour me. Please provide the figures that you are currently seeing for the test/example in message#3 with free shipping.

Thx
Rod

OK - as posted in number 3, it's only happening where shipping is free. ie. The GST gets calculated on only the item price and not the item price + surcharge.

Sub-Total: $80.00
Credit Card / PayPal Fee: $1.09
Free Shipping: $0.00
GST 10%: $7.27 (This is the correct GST for $80, not the total of $80 + $1.09 surcharge, it should be $7.37)

This is consistent across all products and categories.

Total: $81.09

Got me stumped as to how the shipping cost can change the way GST is calculated!

30 Nov 2017, 11:49 PM
#16
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Tax calculation problem - help please!

satphone:

OK - as posted in number 3, it's only happening where shipping is free. ie. The GST gets calculated on only the item price and not the item price + surcharge.

Sub-Total: $80.00
Credit Card / PayPal Fee: $1.09
Free Shipping: $0.00
GST 10%: $7.27 (This is the correct GST for $80, not the total of $80 + $1.09 surcharge, it should be $7.37)

This is consistent across all products and categories.

Total: $81.09

Got me stumped as to how the shipping cost can change the way GST is calculated!

Please continue to humour me here... now change the sort order back to how it originally was (or if you already did that please switch them around again) and then show me the results again.

Thx
Rod

(trust me, I do have good reason for asking this, which I will explain after next set of results).

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

4 Dec 2017, 1:12 AM
#17
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

RodG:

Please continue to humour me here... now change the sort order back to how it originally was (or if you already did that please switch them around again) and then show me the results again.

Thx
Rod

(trust me, I do have good reason for asking this, which I will explain after next set of results).

OK sort order:

Subtotal 100
Shipping 200
CC Fee 250
Tax 300
Total 999

produces exactly the same results as :

Subtotal 100
CC Fee 200
Shipping 250
Tax 300
Total 999

4 Dec 2017, 1:55 AM
#18
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Tax calculation problem - help please!

satphone:

OK sort order:

Subtotal 100
Shipping 200
CC Fee 250
Tax 300
Total 999

produces exactly the same results as :

Subtotal 100
CC Fee 200
Shipping 250
Tax 300
Total 999

<gggrrrrrr>. I asked you to show the results, just as you did in msg#3 and msg#15. Try again.

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

4 Dec 2017, 5:31 AM
#19
satphone avatar

satphone

New Zenner

Join Date:
Jun 2014
Location:
Australia
Posts:
60
Plugin Contributions:
0

Re: Tax calculation problem - help please!

RodG:

<gggrrrrrr>. I asked you to show the results, just as you did in msg#3 and msg#15. Try again.

Rod - I realise you are trying to help. But it is the SAME.

Sub-Total: $80.00
Credit Card / PayPal Fee: $1.09
Free Shipping: $0.00
GST 10%: $7.27 (This is the correct GST for $80, not the total of $80 + $1.09 surcharge, it should be $7.37)

In both sort order case - actual values - the same.

4 Dec 2017, 6:16 AM
#20
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Tax calculation problem - help please!

satphone:

Rod - I realise you are trying to help. But it is the SAME.

Sub-Total: $80.00
Credit Card / PayPal Fee: $1.09
Free Shipping: $0.00
GST 10%: $7.27 (This is the correct GST for $80, not the total of $80 + $1.09 surcharge, it should be $7.37)

In both sort order case - actual values - the same.

It isn't the actual values that I was interested in.

You probably don't even realise this, but all of the examples that you've shown have the "wrong" sort order when referenced against the sort order that you wrote that you had/needed.

To put it together without numbers let's take it like this:

Product = Product Price inc GST
Shipping - Shipping Price inc GST
Surcharge = Surcharge Price inc GST
GST = 10%
GST Calculated = GST charge shown on Invoice / checkout

Your examples are ALL showing a sort order of
Subtotal 100
CC Fee 200
Shipping 250
Tax 300
*Total 999

What you are wanting is.
*Subtotal 100
Shipping 200
CC Fee 250
Tax 300
Total 999

You have successfully demonstrated that your defined sort order isn't being acted upon (or more accurately, you have failed to demonstrate that it is being acted upon).

I would suggest that you resolve/investigate this before delving further.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.