Skip to content
Snippets Groups Projects
Commit 38c7c609 authored by Alexis Algoud's avatar Alexis Algoud
Browse files

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
parent f45a3196
Branches
Tags
No related merge requests found
...@@ -629,7 +629,7 @@ function get_next_value($db,$mask,$table,$field,$where='',$objsoc='',$date='',$m ...@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment