Author Topic: VAT based on shipping address  (Read 80816 times)

mauri

  • Quality&Testing Team
  • Jr. Member
  • *
  • Posts: 297
Re: VAT based on shipping address
« Reply #30 on: September 08, 2009, 12:32:23 pm »
lumix1991 , what is your shop country when you test the file?
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

praymond

  • Beginner
  • *
  • Posts: 6
Re: VAT based on shipping address
« Reply #31 on: September 09, 2009, 07:44:45 am »
Hi Mauri,

I'm in Australia and has similar issue with GST instead of VAT. 

THis is a major problem across VM and needs fixing in the core files.

Anyway, I have installed your files and tested.  All good so far as far as not applying GST to orders from other countries.  However the "Tax/GST Total" displayed in checkout is not adding the Tax from the products only tax from the shipping. The total of the products, tax and shipping is correct. I'm sure this is a minor fix but I'm not sure what code needs fixing.


praymond

  • Beginner
  • *
  • Posts: 6
Re: VAT based on shipping address
« Reply #32 on: September 09, 2009, 11:04:08 am »
Mauri, one more thing I picked up with this hack.  After running through testing this hack I noticed that the shop front prices have reverted back to displaying price (ex tax/GST) and the text doesn't display "inclusive of XX% tax" which is not good since here in Australia  by law, Australian businesses selling to consumers are required to display prices that include, or clearly show, the Goods and Services Tax (GST) component.

The problem with your hack is unless you are logged in you don't get the price displayed with the inclusive or exclusive tax.  I need it to display the Australian price inclusive of GST by default.

Any help you can provide would be really greatful.

Regards
Paul


mauri

  • Quality&Testing Team
  • Jr. Member
  • *
  • Posts: 297
Re: VAT based on shipping address
« Reply #33 on: September 10, 2009, 20:11:52 pm »
Hi praymond, This fix is only EU countries and EU_VAT_ID.
Can you tell me what is GST?

EU VAT :

EU Customers, valid EU_VAT_ID   ,Shipping address in the shop country   ,VAT yes
Customers from outside the EU   ,Shipping address inside the EU      ,VAT yes
Other EU customers      ,Shipping address inside the EU      ,VAT yes

Customers from outside the EU   ,Shipping address outside the EU  ,VAT no
EU Customers, valid EU_VAT_ID   ,Shipping address outside the EU  ,VAT no
EU Customers, valid EU_VAT_ID   ,Shipping address inside the EU, but not the shop country ,VAT no
Other EU customers      ,Shipping address outside the EU   ,VAT no
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

rian

  • Beginner
  • *
  • Posts: 15
Re: VAT based on shipping address
« Reply #34 on: September 21, 2009, 07:31:15 am »
does this fix only work in rc1.1.4 or also in 1.1.3, i have exactly the same problem with eu-tax-mode and i am looking for a quick solution

thank you very much!!

rian

  • Beginner
  • *
  • Posts: 15
Re: VAT based on shipping address
« Reply #35 on: September 21, 2009, 11:00:03 am »
i tried it with the newest nightly build, with or without the modified files it still displays vat, altough i updated my user with a correct number and changed the country.

maybe that has something to do with that the user also doesn't get moved to the defined shopper group after updating a vat-number?

mauri

  • Quality&Testing Team
  • Jr. Member
  • *
  • Posts: 297
Re: VAT based on shipping address
« Reply #36 on: September 21, 2009, 16:07:31 pm »
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

rian

  • Beginner
  • *
  • Posts: 15
Re: VAT based on shipping address
« Reply #37 on: September 21, 2009, 17:04:44 pm »
thank you very much for your quick response.

ok, dont know, if i am doing something wrong: here's what i am doing.
1.) i have one user (no vat-number, same country as shop --> adds vat --> correct
2.) change the user-detail, add vat-number, still same country as shop --> adds vat --> correct
3.) change the country of the user to another eu-country, no vat-number --> adds vat --> correct
4.) add a vat-number to this user (that now has different country than shop, but also eu) --> still adds vat!! this case should be no vat!

5.) add country of the user to switzerland --> no vat --> correct

mauri

  • Quality&Testing Team
  • Jr. Member
  • *
  • Posts: 297
Re: VAT based on shipping address
« Reply #38 on: September 21, 2009, 19:01:50 pm »
thank you very much for your quick response.
ok, dont know, if i am doing something wrong: here's what i am doing.

4.) add a vat-number to this user (that now has different country than shop, but also eu) --> still adds vat!! this case should be no vat![/b]

Have you add the same country vat-number, what user country is?
e.g. DEXXXXXXXX - user country Germany.
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

rian

  • Beginner
  • *
  • Posts: 15
Re: VAT based on shipping address
« Reply #39 on: September 22, 2009, 06:24:48 am »
yes of course!
what i did not test, is what happens with new users, i only checked with updates of one existing user.

thank you!

hotelathome

  • Jr. Member
  • **
  • Posts: 129
Re: VAT based on shipping address
« Reply #40 on: October 04, 2009, 04:00:53 am »
I downloaded the 4 files to my site, it fixed the tax problem i was having when making adjustments an order in the back end, it now adds the tax, but i now have a warning that appears in the back end:
Warning: unknown TAX_MODE "13"
this warning now also appears all over my website, when customers click on any of my products.  Ahhhh,
what does this mean, and how do I fix it.

******SOLVED************
I KNOW THE FOLLOWING IS FOR AUSTRALIAN GST NOT VAT BUT...

Fixed adding gst to orders in back end when adding or altering orders
For me at least.
I have an aussie website and used the fixes in this forum to set up for GST http://forum.virtuemart.net/index.php?topic=54517.30
I then downoaded 3 files only from this forum
http://forum.virtuemart.net/index.php?topic=56983.0
ps_product
ps_order change
basket
If I installed the ps_checkout I got a TAX ERROR "13" on my website.
Worked for me, Hope it works for you too.

mauri

  • Quality&Testing Team
  • Jr. Member
  • *
  • Posts: 297
Re: VAT based on shipping address
« Reply #41 on: October 04, 2009, 12:18:36 pm »
hotelathome. There is no TAX_MODE 13. The tax mode is stored wrong in database.
There are only three modes:
TAX_MODE 0   Based on shipping address
TAX_MODE 1   Based on vendor address
TAX_MODE 17749   EU_MODE

Try this. Go backend (VM-Admin-Configuration)and change tax mode to 'EU_MODE', Apply or Save. Change tax mode back to 'Based on shipping address' and Save.
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

pepe2907

  • Beginner
  • *
  • Posts: 30
Re: VAT based on shipping address
« Reply #42 on: October 07, 2009, 17:32:37 pm »
  /*Guys help me on this please:

My shop /www.famasalescoffee.com/ uses Joomla 1.5.14 and VM 1.1.3

For my checkout I use files of mauri /reply No 5/ with his updated ps_product.php file
and it works good for me. It returns products without taxes, calculates the subtotal, adds shipping /on second page - I use 2 stages checkout/, calculates total value /without tax, $order_total_display/ which I noted as "Total Without Tax" and separately returns the total tax /I noted it Sales Tax, it's $tax_display global variable/.
To this point it works fine for me. I use tax based on shipping address with only two values - 0.00 for interstate shipment and  8.xx percent tax for instate shipment. I don't have any discounts.

The only thing I need is a total value of Total Without Tax + Sales Tax.
I need to add it at the end noted as Full Total. But as $order_total_display and  $tax_display contain strings I can't just calculate the sum.
This sum is mostly important for this page.

May somebody help me to get this sum from somewhere or to calculate it?

I'll be very grateful if somebody helps me on this.
Thanks */

Guys,
Sorry I bothered You. I solved it by myself.
It was a stupid mistake. I put one of the files on a wrong place and begin to edit it and as nothing happened as expected I went crazy unable to understand why it isn't working as it should :).

hotelathome

  • Jr. Member
  • **
  • Posts: 129
Re: VAT based on shipping address
« Reply #43 on: March 31, 2010, 00:37:30 am »
I have discovered another issue with this.
If you add a discount in the back-end. The tax isnt getting changed.
The original tax amount is still showing.

mauri

  • Quality&Testing Team
  • Jr. Member
  • *
  • Posts: 297
Re: VAT based on shipping address
« Reply #44 on: April 02, 2010, 22:27:40 pm »
I have discovered another issue with this.
If you add a discount in the back-end. The tax isnt getting changed.
The original tax amount is still showing.
In VirtueMart configuration you can select:
Subtract payment discount before tax/shipping
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11