Skip to content
Snippets Groups Projects
Commit d0e26f65 authored by Juanjo Menent's avatar Juanjo Menent
Browse files

task #10500: Option to choose if professionnal id are unique.

parent 932b8f90
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@
* \file htdocs/societe/class/societe.class.php
* \ingroup societe
* \brief File for third party class
* \version $Id: societe.class.php,v 1.97 2011/08/11 16:53:43 simnandez Exp $
* \version $Id: societe.class.php,v 1.98 2011/08/12 06:55:55 simnandez Exp $
*/
require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
......@@ -2039,7 +2039,7 @@ class Societe extends CommonObject
* Verifie la validite d'un identifiant professionnel en fonction du pays de la societe (siren, siret, ...)
* @param idprof 1,2,3,4 (Exemple: 1=siren,2=siret,3=naf,4=rcs/rm)
* @param soc Objet societe
* @return int <=0 if KO, >0 if OK, -10=idprofx already exist into database
* @return int <=0 if KO, >0 if OK
* TODO not in business class
*/
function id_prof_check($idprof,$soc)
......
......@@ -25,7 +25,7 @@
* \file htdocs/societe/soc.php
* \ingroup societe
* \brief Third party card page
* \version $Id: soc.php,v 1.133 2011/08/11 16:53:43 simnandez Exp $
* \version $Id: soc.php,v 1.134 2011/08/12 06:55:47 simnandez Exp $
*/
require("../main.inc.php");
......@@ -230,9 +230,6 @@ if (empty($reshook))
$error++; $errors[] = $langs->trans("ErrorSupplierModuleNotEnabled");
$action = ($action=='add'?'create':'edit');
}
if($action == 'add') $mode=0;
else $mode=1;
for ($i = 1; $i < 3; $i++)
{
......@@ -1975,5 +1972,5 @@ else
$db->close();
llxFooter('$Date: 2011/08/11 16:53:43 $ - $Revision: 1.133 $');
llxFooter('$Date: 2011/08/12 06:55:47 $ - $Revision: 1.134 $');
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment