Skip to content

Commit

Permalink
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
eldy committed Aug 12, 2015
2 parents ba67cf9 + 4a124c6 commit 8122ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/core/db/pgsql.class.php
Expand Up @@ -410,6 +410,7 @@ function connect($host, $login, $passwd, $name, $port=0)
$this->database_name = $name;
pg_set_error_verbosity($this->db, PGSQL_ERRORS_VERBOSE); // Set verbosity to max
}
pg_query($this->db, "set datestyle = 'ISO, YMD';");

return $this->db;
}
Expand Down
2 changes: 2 additions & 0 deletions htdocs/societe/checkvat/checkVatPopup.php
Expand Up @@ -49,8 +49,10 @@
}
else
{
$_REQUEST["vatNumber"] = preg_replace('/\^\w/', '', $_REQUEST["vatNumber"]);
$countryCode=substr($_REQUEST["vatNumber"],0,2);
$vatNumber=substr($_REQUEST["vatNumber"],2);

print '<b>'.$langs->trans("Country").'</b>: '.$countryCode.'<br>';
print '<b>'.$langs->trans("VATIntraShort").'</b>: '.$vatNumber.'<br>';
print '<br>';
Expand Down

0 comments on commit 8122ed9

Please sign in to comment.