New: Customer and supplier codes can be automatically generated

This commit is contained in:
Laurent Destailleur
2009-01-31 16:01:21 +00:00
parent bb90ab1288
commit 56aba2f6fa
6 changed files with 83 additions and 87 deletions

View File

@@ -57,10 +57,10 @@ class mod_codeclient_leopard extends ModeleThirdPartyCode
{
$this->nom = "Leopard";
$this->version = "dolibarr";
$this->code_null = 1;
$this->code_modifiable = 1;
$this->code_modifiable_invalide = 1;
$this->code_modifiable_null = 1;
$this->code_null = 1;
$this->code_auto = 0;
}
@@ -81,7 +81,7 @@ class mod_codeclient_leopard extends ModeleThirdPartyCode
* \param $code Code a v<>rifier
* \param $soc Objet societe
*/
function verif($db, $code, $soc)
function verif($db, &$code, $soc)
{
$code = strtoupper(trim($code));