mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-08 18:12:53 +01:00
Changement de mthode de numrotation
This commit is contained in:
@@ -128,9 +128,18 @@ class mod_commande_diamant extends ModeleNumRefCommandes
|
||||
{
|
||||
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());
|
||||
$num = sprintf("%05s",$max+1);
|
||||
|
||||
return "C$yy$num";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user