Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
d0e26f65
Commit
d0e26f65
authored
13 years ago
by
Juanjo Menent
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/societe/class/societe.class.php
+2
-2
2 additions, 2 deletions
htdocs/societe/class/societe.class.php
htdocs/societe/soc.php
+2
-5
2 additions, 5 deletions
htdocs/societe/soc.php
with
4 additions
and
7 deletions
htdocs/societe/class/societe.class.php
+
2
−
2
View file @
d0e26f65
...
...
@@ -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.9
7
2011/08/1
1 16:53:43
simnandez Exp $
* \version $Id: societe.class.php,v 1.9
8
2011/08/1
2 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
)
...
...
This diff is collapsed.
Click to expand it.
htdocs/societe/soc.php
+
2
−
5
View file @
d0e26f65
...
...
@@ -25,7 +25,7 @@
* \file htdocs/societe/soc.php
* \ingroup societe
* \brief Third party card page
* \version $Id: soc.php,v 1.13
3
2011/08/1
1 1
6:5
3
:4
3
simnandez Exp $
* \version $Id: soc.php,v 1.13
4
2011/08/1
2 0
6:5
5
:4
7
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/1
1 1
6:5
3
:4
3
$ - $Revision: 1.13
3
$'
);
llxFooter
(
'$Date: 2011/08/1
2 0
6:5
5
:4
7
$ - $Revision: 1.13
4
$'
);
?>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment