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;
|
global $db, $conf, $mc;
|
||||||
|
|
||||||
$return='000001';
|
|
||||||
|
|
||||||
$field='';
|
$field='';
|
||||||
$where='';
|
|
||||||
$prefix = '';
|
$prefix = '';
|
||||||
if ($type == 0) {
|
if ($type == 0) {
|
||||||
$field = 'code_client';
|
$field = 'code_client';
|
||||||
$prefix = $this->prefixcustomer;
|
$prefix = $this->prefixcustomer;
|
||||||
//$where = ' AND client in (1,2)';
|
|
||||||
} elseif ($type == 1) {
|
} elseif ($type == 1) {
|
||||||
$field = 'code_fournisseur';
|
$field = 'code_fournisseur';
|
||||||
$prefix = $this->prefixsupplier;
|
$prefix = $this->prefixsupplier;
|
||||||
//$where = ' AND fournisseur = 1';
|
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user