Fix : issue for automatic customer and supplier increment code
This commit is contained in:
parent
37ae299941
commit
3d5134c29e
@ -109,7 +109,7 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
|
||||
$posindice=8;
|
||||
$sql = "SELECT MAX(SUBSTRING(".$field.",".$posindice.")) as max";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."societe";
|
||||
$sql.= " WHERE ".$field." LIKE '".$prefix."%'";
|
||||
$sql.= " WHERE ".$field." LIKE '".$prefix."____-%'";
|
||||
|
||||
$resql=$db->query($sql);
|
||||
if ($resql)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user