Add UK with GB.
This commit is contained in:
parent
0301d04fc4
commit
3896b99bad
@ -974,7 +974,7 @@ class Account extends CommonObject
|
||||
$country_code=$this->getCountryCode();
|
||||
|
||||
if (in_array($country_code,array('CH','DE','FR','ES','GA','IT'))) return 1; // France, Spain, Gabon
|
||||
if (in_array($country_code,array('AU','BE','CA','DK','GR','GB','ID','IE','IR','KR','NL','NZ','US'))) return 2; // Australia, Great Britain...
|
||||
if (in_array($country_code,array('AU','BE','CA','DK','GR','GB','ID','IE','IR','KR','NL','NZ','UK','US'))) return 2; // Australia, Great Britain...
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -2443,6 +2443,7 @@ abstract class CommonObject
|
||||
'SE', // Sweden
|
||||
'SK', // Slovakia
|
||||
'SI', // Slovenia
|
||||
'UK', // United Kingdom
|
||||
//'CH', // Switzerland - No. Swizerland in not in EEC
|
||||
);
|
||||
//print "dd".$this->country_code;
|
||||
|
||||
@ -699,7 +699,7 @@ function dol_bc($var,$moreclass='')
|
||||
function dol_format_address($object,$withcountry=0,$sep="\n")
|
||||
{
|
||||
$ret='';
|
||||
$countriesusingstate=array('AU','US','IN','GB','ES');
|
||||
$countriesusingstate=array('AU','US','IN','GB','ES','UK');
|
||||
|
||||
// Address
|
||||
$ret .= $object->address;
|
||||
@ -713,7 +713,7 @@ function dol_format_address($object,$withcountry=0,$sep="\n")
|
||||
}
|
||||
if ($object->zip) $ret .= ', '.$object->zip;
|
||||
}
|
||||
else if (in_array($object->country_code,array('GB'))) // UK: title firstname name \n address lines \n town state \n zip \n country
|
||||
else if (in_array($object->country_code,array('GB','UK'))) // UK: title firstname name \n address lines \n town state \n zip \n country
|
||||
{
|
||||
$ret .= ($ret ? $sep : '' ).$object->town;
|
||||
if ($object->state && in_array($object->country_code,$countriesusingstate))
|
||||
|
||||
@ -1463,7 +1463,7 @@ class Societe extends CommonObject
|
||||
{
|
||||
$lien = '<a href="'.DOL_URL_ROOT.'/categories/categorie.php?id='.$this->id.'&type=1';
|
||||
}
|
||||
|
||||
|
||||
// By default
|
||||
if (empty($lien))
|
||||
{
|
||||
@ -2228,7 +2228,7 @@ class Societe extends CommonObject
|
||||
$url='';
|
||||
|
||||
if ($idprof == 1 && $soc->country_code == 'FR') $url='http://www.societe.com/cgi-bin/recherche?rncs='.$soc->idprof1;
|
||||
if ($idprof == 1 && $soc->country_code == 'GB') $url='http://www.companieshouse.gov.uk/WebCHeck/findinfolink/';
|
||||
if ($idprof == 1 && ($soc->country_code == 'GB' || $soc->country_code == 'UK')) $url='http://www.companieshouse.gov.uk/WebCHeck/findinfolink/';
|
||||
if ($idprof == 1 && $soc->country_code == 'ES') $url='http://www.e-informa.es/servlet/app/portal/ENTP/screen/SProducto/prod/ETIQUETA_EMPRESA/nif/'.$soc->idprof1;
|
||||
if ($idprof == 1 && $soc->country_code == 'IN') $url='http://www.tinxsys.com/TinxsysInternetWeb/dealerControllerServlet?tinNumber='.$soc->idprof1.';&searchBy=TIN&backPage=searchByTin_Inter.jsp';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user