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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
f2392372
Commit
f2392372
authored
14 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
New: Add hidden option MAIN_DISABLEPROFIDRULES to allow a module to disables rules check on prof id
parent
96f5108a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/societe/class/societe.class.php
+4
-4
4 additions, 4 deletions
htdocs/societe/class/societe.class.php
with
4 additions
and
4 deletions
htdocs/societe/class/societe.class.php
+
4
−
4
View file @
f2392372
...
@@ -2128,17 +2128,17 @@ class Societe extends CommonObject
...
@@ -2128,17 +2128,17 @@ class Societe extends CommonObject
*/
*/
function
get_input_id_prof
(
$idprof
,
$htmlname
,
$preselected
)
function
get_input_id_prof
(
$idprof
,
$htmlname
,
$preselected
)
{
{
global
$langs
;
global
$conf
,
$langs
;
$formlength
=
24
;
$formlength
=
24
;
if
(
$this
->
pays_code
==
'FR'
)
if
(
$this
->
pays_code
==
'FR'
&&
empty
(
$conf
->
global
->
MAIN_DISABLEPROFIDRULES
)
)
{
{
if
(
$idprof
==
1
)
$formlength
=
9
;
if
(
$idprof
==
1
)
$formlength
=
9
;
if
(
$idprof
==
2
)
$formlength
=
14
;
if
(
$idprof
==
2
)
$formlength
=
14
;
if
(
$idprof
==
3
)
$formlength
=
5
;
// 4 chiffres et 1 lettre depuis janvier
if
(
$idprof
==
3
)
$formlength
=
5
;
// 4 chiffres et 1 lettre depuis janvier
if
(
$idprof
==
4
)
$formlength
=
32
;
// No maximum as we need to include a town name in this id
if
(
$idprof
==
4
)
$formlength
=
32
;
// No maximum as we need to include a town name in this id
}
}
if
(
$this
->
pays_code
==
'ES'
)
if
(
$this
->
pays_code
==
'ES'
&&
empty
(
$conf
->
global
->
MAIN_DISABLEPROFIDRULES
)
)
{
{
if
(
$idprof
==
1
)
$formlength
=
9
;
//CIF/NIF/NIE 9 digits
if
(
$idprof
==
1
)
$formlength
=
9
;
//CIF/NIF/NIE 9 digits
if
(
$idprof
==
2
)
$formlength
=
12
;
//NASS 12 digits without /
if
(
$idprof
==
2
)
$formlength
=
12
;
//NASS 12 digits without /
...
...
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