mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix phan
This commit is contained in:
parent
107f818cf2
commit
001dc9378f
|
|
@ -89,4 +89,11 @@ abstract class ModeleNumRefAsset extends CommonNumRefGenerator
|
|||
* @return string|int<-1,0> Next value if OK, <=0 if KO
|
||||
*/
|
||||
abstract public function getNextValue($object);
|
||||
|
||||
/**
|
||||
* Return an example of numbering
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
abstract public function getExample();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,8 +110,6 @@ class mod_codeproduct_leopard extends ModeleProductCode
|
|||
*/
|
||||
public function verif($db, &$code, $product, $type)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$result = 0;
|
||||
$code = strtoupper(trim($code));
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ abstract class ModelePDFProduct extends CommonDocGenerator
|
|||
abstract public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Class template for classes of numbering product
|
||||
*/
|
||||
|
|
@ -208,5 +209,8 @@ abstract class ModeleProductCode extends CommonNumRefGenerator
|
|||
* @param int<-1,2> $type Type of third party (1:customer, 2:supplier, -1:autodetect)
|
||||
* @return string Return string example
|
||||
*/
|
||||
//abstract public function getExample($langs = null, $objproduct = '', $type = -1);
|
||||
public function getExample($langs = null, $objproduct = '', $type = -1)
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,4 +89,11 @@ abstract class ModeleNumRefBatch extends CommonNumRefGenerator
|
|||
* @return string|int<-1,0> String if OK, <0 if KO
|
||||
*/
|
||||
abstract public function getNextValue($objsoc, $object);
|
||||
|
||||
/**
|
||||
* Return an example of numbering
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
abstract public function getExample();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,4 +92,11 @@ abstract class ModeleNumRefProjects extends CommonNumRefGenerator
|
|||
* @return string|int<-1,0> Value if OK, 0 if KO
|
||||
*/
|
||||
abstract public function getNextValue($objsoc, $project);
|
||||
|
||||
/**
|
||||
* Return an example of numbering
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
abstract public function getExample();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,4 +90,11 @@ abstract class ModeleNumRefStockTransfer extends CommonNumRefGenerator
|
|||
* @return string|int<-1,0> Value if OK, 0 if KO
|
||||
*/
|
||||
abstract public function getNextValue($object);
|
||||
|
||||
/**
|
||||
* Return an example of numbering
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
abstract public function getExample();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class mod_takepos_ref_universal extends ModeleNumRefTakepos
|
|||
*/
|
||||
public function getExample()
|
||||
{
|
||||
global $conf, $langs, $mysoc;
|
||||
global $langs, $mysoc;
|
||||
|
||||
$old_code_client = $mysoc->code_client;
|
||||
$mysoc->code_client = 'CCCCCCCCCC';
|
||||
|
|
|
|||
|
|
@ -44,4 +44,11 @@ abstract class ModeleNumRefTakepos extends CommonNumRefGenerator
|
|||
* @return string|int<-1,0> Next ref value or last ref if $mode is 'last'
|
||||
*/
|
||||
abstract public function getNextValue($objsoc = null, $invoice = null, $mode = 'next');
|
||||
|
||||
/**
|
||||
* Return an example of numbering
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
abstract public function getExample();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,4 +74,11 @@ abstract class ModeleNumRefRecruitmentCandidature extends CommonNumRefGenerator
|
|||
* @return string|int<-1,0> Next value if OK, <=0 if KO
|
||||
*/
|
||||
abstract public function getNextValue($object);
|
||||
|
||||
/**
|
||||
* Return an example of numbering
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
abstract public function getExample();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,4 +89,11 @@ abstract class ModeleNumRefRecruitmentJobPosition extends CommonNumRefGenerator
|
|||
* @return string|int<-1,0> Next value if OK, 0 if KO
|
||||
*/
|
||||
abstract public function getNextValue($object);
|
||||
|
||||
/**
|
||||
* Return an example of numbering
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
abstract public function getExample();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user