New : option to reset numbering to 0 every month using @99 in the mask

This commit is contained in:
Maxime Kohlhaas 2013-02-06 11:52:49 +01:00
parent 644a05f6dc
commit 5992ebcdbc

View File

@ -607,6 +607,7 @@ function get_next_value($db,$mask,$table,$field,$where='',$objsoc='',$date='',$m
if ($maskraz > 0) // A reset is required
{
if ($maskraz == 99) $maskraz = date('m');
if ($maskraz > 12) return 'ErrorBadMaskBadRazMonth';
// Define posy, posm and reg