2
0
forked from Wavyzz/dolibarr

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:
Alexis Algoud
2013-12-02 11:42:39 +01:00
parent f45a31969b
commit 38c7c609bc

View File

@@ -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 == 99) {
$maskraz = date('m');
$maskraz = date('m', $date);
$resetEveryMonth = true;
}
if ($maskraz > 12) return 'ErrorBadMaskBadRazMonth';