Default nb of digits for customer code "monkey" template is on 5 digits.
This commit is contained in:
parent
6e0df5d3cc
commit
65412b77de
@ -120,19 +120,14 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
|
||||
{
|
||||
global $db, $conf, $mc;
|
||||
|
||||
$return='000001';
|
||||
|
||||
$field='';
|
||||
$where='';
|
||||
$prefix = '';
|
||||
if ($type == 0) {
|
||||
$field = 'code_client';
|
||||
$prefix = $this->prefixcustomer;
|
||||
//$where = ' AND client in (1,2)';
|
||||
} elseif ($type == 1) {
|
||||
$field = 'code_fournisseur';
|
||||
$prefix = $this->prefixsupplier;
|
||||
//$where = ' AND fournisseur = 1';
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user