diff --git a/htdocs/includes/modules/commande/mod_commande_diamant.php b/htdocs/includes/modules/commande/mod_commande_diamant.php index 49d5e5db2e2..3eabdcb3cf6 100644 --- a/htdocs/includes/modules/commande/mod_commande_diamant.php +++ b/htdocs/includes/modules/commande/mod_commande_diamant.php @@ -101,7 +101,7 @@ class mod_commande_diamant extends ModeleNumRefCommandes if ($resql) { $row = $db->fetch_row($resql); - if ($row) $cyy = substr($row[0],0,4); + if ($row) $cyy = substr($row[0],0,3); } // Si au moins un champ respectant le modèle a été trouvée diff --git a/htdocs/includes/modules/commande/mod_commande_jade.php b/htdocs/includes/modules/commande/mod_commande_jade.php index 1423abc0727..63a51f28aad 100644 --- a/htdocs/includes/modules/commande/mod_commande_jade.php +++ b/htdocs/includes/modules/commande/mod_commande_jade.php @@ -78,7 +78,7 @@ class mod_commande_jade extends ModeleNumRefCommandes if ($resql) { $row = $db->fetch_row($resql); - if ($row) $cyy = substr($row[0],0,4); + if ($row) $cyy = substr($row[0],0,3); } // Si au moins un champ respectant le modèle a été trouvée diff --git a/htdocs/includes/modules/commande/mod_commande_marbre.php b/htdocs/includes/modules/commande/mod_commande_marbre.php index 626525b74bd..e2a9f1e9890 100644 --- a/htdocs/includes/modules/commande/mod_commande_marbre.php +++ b/htdocs/includes/modules/commande/mod_commande_marbre.php @@ -105,7 +105,7 @@ class mod_commande_marbre extends ModeleNumRefCommandes if ($resql) { $row = $db->fetch_row($resql); - if ($row) $cyymm = substr($row[0],0,6); + if ($row) $cyymm = substr($row[0],0,5); } // Si au moins un champ respectant le modèle a été trouvée diff --git a/htdocs/includes/modules/commande/mod_commande_opale.php b/htdocs/includes/modules/commande/mod_commande_opale.php index 0e526e8adc0..2ef6307c8bc 100644 --- a/htdocs/includes/modules/commande/mod_commande_opale.php +++ b/htdocs/includes/modules/commande/mod_commande_opale.php @@ -54,6 +54,14 @@ class mod_commande_opale extends ModeleNumRefCommandes { return "Renvoie le numéro sous la forme numérique COMhexa, où hexa représente un incrément global codé en héxadécimal. (COM-000-001 à COM-FFF-FFF)"; } + + /** \brief Renvoi un exemple de numérotation + * \return string Example + */ + function getExample() + { + return "COM-000-001"; + } /** \brief Renvoie le prochaine numéro de référence de commande non utilisé