Default nb of digits for customer code "monkey" template is on 5 digits.

This commit is contained in:
Laurent Destailleur 2018-12-18 20:16:02 +01:00
parent 6e0df5d3cc
commit 65412b77de

View File

@ -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;
}