Add quick hack by hidden const as solution when numbering is locked.

This commit is contained in:
Laurent Destailleur 2019-11-08 16:37:25 +01:00
parent 3b44760e65
commit 8f35c24b62

View File

@ -214,6 +214,11 @@ class mod_codeproduct_elephant extends ModeleProductCode
$now=dol_now();
if (! empty($conf->global->PRODUCT_ELEPHANT_ADD_WHERE))
{
$where = ' AND ('.dol_string_nospecial(dol_string_unaccent($conf->global->PRODUCT_ELEPHANT_ADD_WHERE), '_', array(',', '@', '"', "|", ";", ":")).')';
}
$numFinal=get_next_value($db, $mask, 'product', $field, $where, '', $now);
return $numFinal;