Error on mercure bill's number function.
Ex draft bill for november :
mask = FC{yy}{mm}{000@99}
{mm} = 11
On validation, number -> FC131160 instead of FC131112
This commit is contained in:
parent
f45a31969b
commit
38c7c609bc
@ -629,7 +629,7 @@ function get_next_value($db,$mask,$table,$field,$where='',$objsoc='',$date='',$m
|
|||||||
if ($maskraz > 0) // A reset is required
|
if ($maskraz > 0) // A reset is required
|
||||||
{
|
{
|
||||||
if ($maskraz == 99) {
|
if ($maskraz == 99) {
|
||||||
$maskraz = date('m');
|
$maskraz = date('m', $date);
|
||||||
$resetEveryMonth = true;
|
$resetEveryMonth = true;
|
||||||
}
|
}
|
||||||
if ($maskraz > 12) return 'ErrorBadMaskBadRazMonth';
|
if ($maskraz > 12) return 'ErrorBadMaskBadRazMonth';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user