Jump to content

logic behind applicable VAT number


frankit

Recommended Posts

Hi there, I'm using PS 1.5.6.0.

 

I've noticed that during address creation, the VAT number field appear only for a bunch of countries and I don't fully understand why.

 

Apart from the strange js behavior that you can show the VAT# field just by selecting a country considered applicable by prestashop, even if you leaved the company field empty (while there is a script that should show/hide the VAT field just according to the company one), I don't understand why prestashop consider the VAT# field applicable only to this static list of countries:

		$intracom_array = array(
			'AT'=>'AT',	//Austria
			'BE'=>'BE',	//Belgium
			'DK'=>'DK',	//Denmark
			'FI'=>'FI',	//Finland
			'FR'=>'FR',	//France
			'FX'=>'FR',	//France m�tropolitaine
			'DE'=>'DE',	//Germany
			'GR'=>'EL',	//Greece
			'IE'=>'IE',	//Irland
			'IT'=>'IT',	//Italy
			'LU'=>'LU',	//Luxembourg
			'NL'=>'NL',	//Netherlands
			'PT'=>'PT',	//Portugal
			'ES'=>'ES',	//Spain
			'SE'=>'SE',	//Sweden
			'GB'=>'GB',	//United Kingdom
			'CY'=>'CY',	//Cyprus
			'EE'=>'EE',	//Estonia
			'HU'=>'HU',	//Hungary
			'LV'=>'LV',	//Latvia
			'LT'=>'LT',	//Lithuania
			'MT'=>'MT',	//Malta
			'PL'=>'PL',	//Poland
			'SK'=>'SK',	//Slovakia
			'CZ'=>'CZ',	//Czech Republic
			'SI'=>'SI',	//Slovenia
			'RO'=>'RO', //Romania
			'BG'=>'BG'	//Bulgaria
		);

what if I'm from switzerland and I want to make an order specifing the VAT number of my company??

I just can't, why?? Here I see that many other countries even outside the EU should be able to specify their own VAT number.

 

Since that array is declared in the vatnumber module (but accessed via ajax during address creation even if the module is uninstalled), I suppose that those countries are the only ones that can be treated from the vatnumber module (that I dont even know that well what is meant for). If so, I think this could be considered as a bug. But what am I missing? maybe PS use the VAT number for some other purpose I'm not aware of? why limit to that static list?

 

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...