Changement de mthode de numrotation
This commit is contained in:
parent
feb235ad52
commit
86c9d3f324
@ -128,9 +128,18 @@ class mod_commande_diamant extends ModeleNumRefCommandes
|
|||||||
{
|
{
|
||||||
define("COMMANDE_DIAMANT_DELTA", 0);
|
define("COMMANDE_DIAMANT_DELTA", 0);
|
||||||
}
|
}
|
||||||
$max = $max + COMMANDE_DIAMANT_DELTA;
|
|
||||||
|
if ($max == 0)
|
||||||
|
{
|
||||||
|
$delta = COMMANDE_DIAMANT_DELTA;
|
||||||
|
$num = sprintf("%05s",$delta);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$num = sprintf("%05s",$max+1);
|
||||||
|
}
|
||||||
|
|
||||||
$yy = strftime("%y",time());
|
$yy = strftime("%y",time());
|
||||||
$num = sprintf("%05s",$max+1);
|
|
||||||
|
|
||||||
return "C$yy$num";
|
return "C$yy$num";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user