This commit is contained in:
Laurent Destailleur 2019-10-08 11:27:52 +02:00
parent e4e79a5888
commit 651dec8dc2
2 changed files with 19 additions and 19 deletions

View File

@ -37,7 +37,7 @@ class mod_codeproduct_elephant extends ModeleProductCode
/**
* @var string Nom du modele
* @deprecated
* @see name
* @see $name
*/
public $nom='Elephant';
@ -244,16 +244,16 @@ class mod_codeproduct_elephant extends ModeleProductCode
/**
* Check validity of code according to its rules
*
* @param DoliDB $db Database handler
* @param string $code Code to check/correct
* @param DoliDB $db Database handler
* @param string $code Code to check/correct
* @param Product $product Object product
* @param int $type 0 = customer/prospect , 1 = supplier
* @return int 0 if OK
* -1 ErrorBadCustomerCodeSyntax
* -2 ErrorCustomerCodeRequired
* -3 ErrorCustomerCodeAlreadyUsed
* -4 ErrorPrefixRequired
* -5 Other (see this->error)
* @param int $type 0 = product , 1 = service
* @return int 0 if OK
* -1 ErrorBadCustomerCodeSyntax
* -2 ErrorCustomerCodeRequired
* -3 ErrorCustomerCodeAlreadyUsed
* -4 ErrorPrefixRequired
* -5 Other (see this->error)
*/
public function verif($db, &$code, $product, $type)
{

View File

@ -42,7 +42,7 @@ class mod_codeproduct_leopard extends ModeleProductCode
/**
* @var string Nom du modele
* @deprecated
* @see name
* @see $name
*/
public $nom='Leopard';
@ -111,15 +111,15 @@ class mod_codeproduct_leopard extends ModeleProductCode
/**
* Check validity of code according to its rules
*
* @param DoliDB $db Database handler
* @param string $code Code to check/correct
* @param DoliDB $db Database handler
* @param string $code Code to check/correct
* @param Product $product Object product
* @param int $type 0 = product , 1 = service
* @return int 0 if OK
* -1 ErrorBadProductCodeSyntax
* -2 ErrorProductCodeRequired
* -3 ErrorProductCodeAlreadyUsed
* -4 ErrorPrefixRequired
* @param int $type 0 = product , 1 = service
* @return int 0 if OK
* -1 ErrorBadProductCodeSyntax
* -2 ErrorProductCodeRequired
* -3 ErrorProductCodeAlreadyUsed
* -4 ErrorPrefixRequired
*/
public function verif($db, &$code, $product, $type)
{