Début ajout du modèle personnalisable "tigre" avec numérotation automatique pour les codes clients et fournisseurs.
This commit is contained in:
parent
9b06115028
commit
a2bf93c67c
@ -229,7 +229,7 @@ class mod_codeclient_tigre extends ModeleThirdPartyCode
|
|||||||
$substrEnd += 2;
|
$substrEnd += 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (eregi('\{d+\}',$mask) && (eregi('\{d+\}',$mask) != '{dd}'))
|
else if (eregi('\{d+\}',$maskElement[$i]) && (eregi('\{d+\}',$$maskElement[$i]) != '{dd}'))
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
@ -247,7 +247,7 @@ class mod_codeclient_tigre extends ModeleThirdPartyCode
|
|||||||
$substrEnd += 2;
|
$substrEnd += 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (eregi('\{m+\}',$mask) && (eregi('\{m+\}',$mask) != '{mm}'))
|
else if (eregi('\{m+\}',$maskElement[$i]) && (eregi('\{m+\}',$maskElement[$i]) != '{mm}'))
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
@ -353,6 +353,10 @@ class mod_codeclient_tigre extends ModeleThirdPartyCode
|
|||||||
$maskRebuild .= $maskElement[$i];
|
$maskRebuild .= $maskElement[$i];
|
||||||
$foundCounter = 1;
|
$foundCounter = 1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$this->substrBegin = $substrBegin;
|
$this->substrBegin = $substrBegin;
|
||||||
$this->substrEnd = $substrEnd;
|
$this->substrEnd = $substrEnd;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user