Zen Cart Logo
Forums / Currencies & Sales Taxes, VAT, GST, etc. / Error in taxes in the shipping

Error in taxes in the shipping

Views: 6,919

Results 1 to 15 of 15
24 Dec 2015, 5:12 PM
#1
fardacho avatar

fardacho

New Zenner

Join Date:
Dec 2015
Location:
Zaragoza (Spain)
Posts:
3
Plugin Contributions:
0

Error in taxes in the shipping

Hi everyone and Merry Christmas !!
I have a problem with taxes:
Apparently everything works perfectly, but the end result encounter an error.

I have done a simulation of purchase for a shipping within the European Union.
It calculates the amounts and tax of the product.
If I press the button "Calculate Shipping" I get the sum of the shipping with taxes included. (picture1)

Continue with the purchase process and the calculation of shipping, plus the tax is correct. (picture2)

But at the end of the buying process observed that adds product price (with tax included) but transport costs are shown in their net price, excluding taxes. (picture3)

The tax rate is 21%
So the bill is shown as:

Products Model Tax Price (ex) Price (inc) Total (ex) Total (inc)
1 x Linen Pavilion 21% €1,074.38 €1,300.00 €1,074.38 €1,300.00
Sub-Total: €1,300.00
Send by GLS (delivered in FR): €47.00
: €0.00
IVA-VAT: €225.62
Total: €1,347.00

I need you to show any of the following forms:

Products Model Tax Price (ex) Price (inc) Total (ex) Total (inc)
1 x Linen Pavilion 21% €1,074.38 €1,300.00 €1,074.38 €1,300.00
Sub-Total: €1,300.00
Send by GLS (delivered in FR): €47.00
IVA-VAT Shipping costs : €9.87
IVA-VAT: €225.62
Total: €1,356.87

Products Model Tax Price (ex) Price (inc) Total (ex) Total (inc)
1 x Linen Pavilion 21% €1,074.38 €1,300.00 €1,074.38 €1,300.00
Sub-Total: €1,300.00
Send by GLS (delivered in FR): €56.87
: €0.00
IVA-VAT: €235.49
Total: €1,356.87

Anyone have a solution?

Thank you!!

24 Dec 2015, 6:55 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Error in taxes in the shipping

What's generating the highlighted portion of your order-totals on the checkout-confirmation page?

Products Model Tax Price (ex) Price (inc) Total (ex) Total (inc)
1 x Linen Pavilion 21% €1,074.38 €1,300.00 €1,074.38 €1,300.00
Sub-Total: €1,300.00
Send by GLS (delivered in FR): €56.87
[B]: €0.00[/B]
IVA-VAT: €235.49
Total: €1,356.87

Zen Cart v1.3.7.1? Really?:no:

26 Dec 2015, 5:51 PM
#3
fardacho avatar

fardacho

New Zenner

Join Date:
Dec 2015
Location:
Zaragoza (Spain)
Posts:
3
Plugin Contributions:
0

Re: Error in taxes in the shipping

Hi lat9, thank you for you repply.

Do not know, possibly the option "Maintenance costs". If I select the option "store pickup", do not shows that part.
Use Zen Cart 1.3.7.1

26 Dec 2015, 6:48 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Error in taxes in the shipping

Yikes! That version of Zen Cart is so old, I'm not sure where to start ... other than to give you a non-answer to your question, suggesting that this is a good time to upgrade (given that Zen Cart v1.5.5's release is imminent).

26 Dec 2015, 7:23 PM
#5
fardacho avatar

fardacho

New Zenner

Join Date:
Dec 2015
Location:
Zaragoza (Spain)
Posts:
3
Plugin Contributions:
0

Re: Error in taxes in the shipping

You can update to v.1.5.5 from Zen Cart Zen Cart 1.3.7.1?

1 Apr 2016, 12:38 PM
#7
hairydog avatar

hairydog

Zen Follower

Join Date:
Sep 2006
Posts:
165
Plugin Contributions:
0

Re: Error in taxes in the shipping

lat9:

Yikes! That version of Zen Cart is so old, I'm not sure where to start ... other than to give you a non-answer to your question, suggesting that this is a good time to upgrade (given that Zen Cart v1.5.5's release is imminent).
That's all very well, but I have exactly the same problem with a brand new clean install of ZC 1.5.5.

1 Apr 2016, 1:15 PM
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Error in taxes in the shipping

@hairydog, how exactly-the-same is your issue? What shipping method are you using? What is your store's settings for Configuration::My Store:: Display Prices with Tax? What order totals are installed?

1 Apr 2016, 2:05 PM
#9
hairydog avatar

hairydog

Zen Follower

Join Date:
Sep 2006
Posts:
165
Plugin Contributions:
0

Re: Error in taxes in the shipping

Shipping method: Table
Display prices with tax: False
Display ... in Admin: False
Basis of product tax: Store *
Basis of shipping tax: Store *
OT:
subtotal 100
group pricing 200 (none set up)
shipping 300
tax 400
total 1000

*This is not the correct setting for UK VAT, but it should still work!

With a product costing £10.00, delivery £9.95, VAT 20% it says:

Subtotal £10.00
Table Rate (Best Way) £9.95
Standard Rate VAT £2.00
Total £19.95

If I switch it to basis Shipping both for products and for shipping, it seems to work properly:

Subtotal £10.00
Table Rate (Best Way) £9.95
Standard Rate VAT £3.99
Total £23.94

1 Apr 2016, 2:52 PM
#10
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Error in taxes in the shipping

Thanks for that update, hairydog, that looks like sufficient information to reproduce the issue. I'll report back a bit later.

Update: What tax-class do you have assigned to the table-rate shipping method?

Update2: What is the zip/post-code that is assigned to your store (Configuration->My Store)?

1 Apr 2016, 3:16 PM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Error in taxes in the shipping

The issue appears to be within /includes/modules/order_total/ot_shipping.php. Within that file, starting at line 50 (Zen Cart 1.5.5) you'll see:

          if ($shipping_tax_basis == 'Billing') {
            $shipping_tax = zen_get_tax_rate($GLOBALS[$module]->tax_class, $order->billing['country']['id'], $order->billing['zone_id']);
            $shipping_tax_description = zen_get_tax_description($GLOBALS[$module]->tax_class, $order->billing['country']['id'], $order->billing['zone_id']);
          } elseif ($shipping_tax_basis == 'Shipping') {
            $shipping_tax = zen_get_tax_rate($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
            $shipping_tax_description = zen_get_tax_description($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
          } else {
            if (STORE_ZONE == $order->billing['zone_id']) {
              $shipping_tax = zen_get_tax_rate($GLOBALS[$module]->tax_class, $order->billing['country']['id'], $order->billing['zone_id']);
              $shipping_tax_description = zen_get_tax_description($GLOBALS[$module]->tax_class, $order->billing['country']['id'], $order->billing['zone_id']);
            } elseif (STORE_ZONE == $order->delivery['zone_id']) {
              $shipping_tax = zen_get_tax_rate($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
              $shipping_tax_description = zen_get_tax_description($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
            } else {
              $shipping_tax = 0;
            }
          }

The processing when the shipping module's tax-basis is "STORE" requires that the order's shipping or billing address be within the store's default zone; otherwise the shipping cost is 0. That "maps" to the description you've provided.

Is there a reason that your shipping-tax basis wants to be "store" instead of "shipping"?

1 Apr 2016, 7:27 PM
#12
hairydog avatar

hairydog

Zen Follower

Join Date:
Sep 2006
Posts:
165
Plugin Contributions:
0

Re: Error in taxes in the shipping

The tax class is "Taxable Goods"
Configuration / My Store doesn't have a zip/post code field. It only has Country (United Kingdom) and Zone (United Kingdom)

On checking, I noticed that in "Zone Definitions - Taxes, Payment and Shipping" it said "United Kingdom" in Country and "Please Select..." in Zone. So I selected "United Kingdom" which made it consistently wrong :( Not only did it not calculate the VAT, but the £0.00 line was labelled "Sales Tax" instead of "VAT"

So I went back and re-selected "Please Select..." and it works OK with the "Basis of tax" both set to "Shipping"

I'm not sure what is going on, but perhaps this helps identify the problem.

1 Apr 2016, 7:30 PM
#13
hairydog avatar

hairydog

Zen Follower

Join Date:
Sep 2006
Posts:
165
Plugin Contributions:
0

Re: Error in taxes in the shipping

lat9:

Is there a reason that your shipping-tax basis wants to be "store" instead of "shipping"?No, there isn't! It was a mistake on my behalf.
It isn't a problem for me because it works OK set to "Shipping". However, there must be a reason for the setting being there, and it should work properly when selected!

1 Apr 2016, 7:38 PM
#14
hairydog avatar

hairydog

Zen Follower

Join Date:
Sep 2006
Posts:
165
Plugin Contributions:
0

Re: Error in taxes in the shipping

later... I can't see why that

} else {              $shipping_tax = 0;
            }

would be there at all.

Surely it should calculate the tax on the basis of the store's address, not set the tax to zero.

1 Apr 2016, 8:21 PM
#15
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Error in taxes in the shipping

hairydog:

No, there isn't! It was a mistake on my behalf.
It isn't a problem for me because it works OK set to "Shipping". However, there must be a reason for the setting being there, and it should work properly when selected!

hairydog:

later... I can't see why that

} else { $shipping_tax = 0;
}

> would be there at all.
> 
> Surely it should calculate the tax on the basis of the store's address, not set the tax to zero.
That would be my assessment as well; I'm hoping that one of the Zen Cart devs will "step in" and let us know what functionality was intended when the the shipping tax basis is set to STORE.