diff --git a/htdocs/core/modules/bom/modules_bom.php b/htdocs/core/modules/bom/modules_bom.php index d1f00a27e9f..9e5ce0346ca 100644 --- a/htdocs/core/modules/bom/modules_bom.php +++ b/htdocs/core/modules/bom/modules_bom.php @@ -93,4 +93,11 @@ abstract class ModeleNumRefBoms extends CommonNumRefGenerator * @return string|int<-1,0> Next value if OK, 0 if KO */ abstract public function getNextValue($objprod, $object); + + /** + * Return an example of numbering + * + * @return string Example + */ + abstract public function getExample(); } diff --git a/htdocs/core/modules/cheque/modules_chequereceipts.php b/htdocs/core/modules/cheque/modules_chequereceipts.php index 94ccd9dcd85..1137a17cc05 100644 --- a/htdocs/core/modules/cheque/modules_chequereceipts.php +++ b/htdocs/core/modules/cheque/modules_chequereceipts.php @@ -46,6 +46,13 @@ abstract class ModeleNumRefChequeReceipts extends CommonNumRefGenerator * @return string|int<-1,0> Next value if OK, 0 if KO */ abstract public function getNextValue($objsoc, $object); + + /** + * Return an example of numbering + * + * @return string Example + */ + abstract public function getExample(); } /** diff --git a/htdocs/core/modules/commande/modules_commande.php b/htdocs/core/modules/commande/modules_commande.php index 7f0f1456189..a0d1f4eda9e 100644 --- a/htdocs/core/modules/commande/modules_commande.php +++ b/htdocs/core/modules/commande/modules_commande.php @@ -111,4 +111,12 @@ abstract class ModeleNumRefCommandes extends CommonNumRefGenerator * @return string|int<-1,0> Value if OK, -1 if KO */ abstract public function getNextValue($objsoc, $object); + + + /** + * Return an example of numbering + * + * @return string Example + */ + abstract public function getExample(); } diff --git a/htdocs/core/modules/contract/modules_contract.php b/htdocs/core/modules/contract/modules_contract.php index 0a5f96ada52..65fab16a192 100644 --- a/htdocs/core/modules/contract/modules_contract.php +++ b/htdocs/core/modules/contract/modules_contract.php @@ -90,4 +90,11 @@ abstract class ModelNumRefContracts extends CommonNumRefGenerator * @return string|int<-1,0> Next value if OK, -1 or 0 if KO */ abstract public function getNextValue($objsoc, $contract); + + /** + * Return an example of numbering + * + * @return string Example + */ + abstract public function getExample(); } diff --git a/htdocs/core/modules/delivery/modules_delivery.php b/htdocs/core/modules/delivery/modules_delivery.php index c1f919924f6..fc843e4ebd4 100644 --- a/htdocs/core/modules/delivery/modules_delivery.php +++ b/htdocs/core/modules/delivery/modules_delivery.php @@ -88,4 +88,11 @@ abstract class ModeleNumRefDeliveryOrder extends CommonNumRefGenerator * @return string|int<-1,0> Value if OK, 0 or -1 if KO */ abstract public function getNextValue($objsoc, $object); + + /** + * Return an example of numbering + * + * @return string Example + */ + abstract public function getExample(); } diff --git a/htdocs/core/modules/expedition/modules_expedition.php b/htdocs/core/modules/expedition/modules_expedition.php index 6e606571fda..8707d0a5473 100644 --- a/htdocs/core/modules/expedition/modules_expedition.php +++ b/htdocs/core/modules/expedition/modules_expedition.php @@ -91,4 +91,11 @@ abstract class ModelNumRefExpedition extends CommonNumRefGenerator * @return string|int<-1,0> Value if OK, 0 or -1 if KO */ abstract public function getNextValue($objsoc, $shipment); + + /** + * Return an example of numbering + * + * @return string Example + */ + abstract public function getExample(); } diff --git a/htdocs/core/modules/expensereport/modules_expensereport.php b/htdocs/core/modules/expensereport/modules_expensereport.php index 64d5a4c4a27..a9c08ac17ed 100644 --- a/htdocs/core/modules/expensereport/modules_expensereport.php +++ b/htdocs/core/modules/expensereport/modules_expensereport.php @@ -91,4 +91,11 @@ abstract class ModeleNumRefExpenseReport extends CommonNumRefGenerator * @return string|int<-1,0> Next value if OK, -1 or 0 if KO */ abstract public function getNextValue($object); + + /** + * Return an example of numbering + * + * @return string Example + */ + abstract public function getExample(); } diff --git a/htdocs/core/modules/facture/modules_facture.php b/htdocs/core/modules/facture/modules_facture.php index 586e7f8a414..128b63168ec 100644 --- a/htdocs/core/modules/facture/modules_facture.php +++ b/htdocs/core/modules/facture/modules_facture.php @@ -277,4 +277,11 @@ abstract class ModeleNumRefFactures extends CommonNumRefGenerator * @return string|int<-1,0> Value if OK, <=0 if KO */ abstract public function getNextValue($objsoc, $invoice, $mode = 'next'); + + /** + * Return an example of numbering + * + * @return string Example + */ + abstract public function getExample(); } diff --git a/htdocs/core/modules/member/modules_member.class.php b/htdocs/core/modules/member/modules_member.class.php index 6b8ba978811..d9835a3789e 100644 --- a/htdocs/core/modules/member/modules_member.class.php +++ b/htdocs/core/modules/member/modules_member.class.php @@ -90,8 +90,6 @@ abstract class ModeleNumRefMembers extends CommonNumRefGenerator */ public function getToolTip($langs, $soc) { - global $conf; - $langs->loadLangs(array("admin", "companies")); $strikestart = ''; @@ -138,4 +136,11 @@ abstract class ModeleNumRefMembers extends CommonNumRefGenerator { return ''; } + + /** + * Return an example of numbering + * + * @return string Example + */ + abstract public function getExample(); } diff --git a/htdocs/core/modules/mrp/mod_mo_advanced.php b/htdocs/core/modules/mrp/mod_mo_advanced.php index 3c8e8bae564..255a3e6da43 100644 --- a/htdocs/core/modules/mrp/mod_mo_advanced.php +++ b/htdocs/core/modules/mrp/mod_mo_advanced.php @@ -61,7 +61,7 @@ class mod_mo_advanced extends ModeleNumRefMos */ public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/mrp/modules_mo.php b/htdocs/core/modules/mrp/modules_mo.php index 1e9955a27b1..ca5b84fb7c7 100644 --- a/htdocs/core/modules/mrp/modules_mo.php +++ b/htdocs/core/modules/mrp/modules_mo.php @@ -89,4 +89,12 @@ abstract class ModeleNumRefMos extends CommonNumRefGenerator * @return string|int<-1,0> Value if OK, <=0 if KO */ abstract public function getNextValue($objprod, $object); + + + /** + * Return an example of numbering + * + * @return string Example + */ + abstract public function getExample(); }