Add quick hack by hidden const as solution when numbering is locked.
This commit is contained in:
parent
3b44760e65
commit
8f35c24b62
@ -214,6 +214,11 @@ class mod_codeproduct_elephant extends ModeleProductCode
|
|||||||
|
|
||||||
$now=dol_now();
|
$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);
|
$numFinal=get_next_value($db, $mask, 'product', $field, $where, '', $now);
|
||||||
|
|
||||||
return $numFinal;
|
return $numFinal;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user