Debug clone tasks

This commit is contained in:
Laurent Destailleur
2024-09-10 01:57:46 +02:00
parent 870a5248ec
commit def1cfe27e
6 changed files with 36 additions and 14 deletions

View File

@@ -124,9 +124,9 @@ class mod_task_simple extends ModeleNumRefTask
/**
* Return next value
*
* @param Societe|string $objsoc Object third party
* @param Task|string $object Object Task
* @return string|-1 Value if OK, -1 if KO
* @param null|Societe|string $objsoc Object third party
* @param null|Task|string $object Object Task
* @return string|int<-1,0> Value if OK, <=0 if KO
*/
public function getNextValue($objsoc, $object)
{

View File

@@ -121,9 +121,9 @@ class mod_task_universal extends ModeleNumRefTask
/**
* Return next value
*
* @param Societe|string $objsoc Object third party
* @param Task|string $object Object task
* @return string|int Value if OK, 0 if KO
* @param null|Societe|string $objsoc Object third party
* @param null|Task|string $object Object Task
* @return string|int<-1,0> Value if OK, <=0 if KO
*/
public function getNextValue($objsoc = '', $object = '')
{

View File

@@ -38,7 +38,7 @@ abstract class ModelePDFTask extends CommonDocGenerator
/**
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param DoliDB $db Database handler
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
@@ -62,5 +62,19 @@ abstract class ModelePDFTask extends CommonDocGenerator
*/
abstract class ModeleNumRefTask extends CommonNumRefGenerator
{
// No overload code
/**
* Return next value
*
* @param null|Societe|string $objsoc Object third party
* @param null|Task|string $object Object Task
* @return string|int<-1,0> Value if OK, <=0 if KO
*/
abstract public function getNextValue($objsoc, $object);
/**
* Return an example of numbering
*
* @return string Example
*/
abstract public function getExample();
}