forked from Wavyzz/dolibarr
wip
This commit is contained in:
@@ -59,7 +59,7 @@ class mod_contract_magre extends ModelNumRefContracts
|
||||
*
|
||||
* @return string text description
|
||||
*/
|
||||
function info()
|
||||
public function info()
|
||||
{
|
||||
global $conf,$langs;
|
||||
|
||||
@@ -95,7 +95,7 @@ class mod_contract_magre extends ModelNumRefContracts
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
function getExample()
|
||||
public function getExample()
|
||||
{
|
||||
global $conf,$langs,$mysoc;
|
||||
|
||||
@@ -118,7 +118,7 @@ class mod_contract_magre extends ModelNumRefContracts
|
||||
* @param Object $contract contract object
|
||||
* @return string Value if OK, 0 if KO
|
||||
*/
|
||||
function getNextValue($objsoc, $contract)
|
||||
public function getNextValue($objsoc, $contract)
|
||||
{
|
||||
global $db,$conf;
|
||||
|
||||
@@ -145,7 +145,7 @@ class mod_contract_magre extends ModelNumRefContracts
|
||||
* @param Object $objforref contract object
|
||||
* @return string Value if OK, 0 if KO
|
||||
*/
|
||||
function contract_get_num($objsoc, $objforref)
|
||||
public function contract_get_num($objsoc, $objforref)
|
||||
{
|
||||
// phpcs:enable
|
||||
return $this->getNextValue($objsoc, $objforref);
|
||||
|
||||
@@ -66,7 +66,7 @@ class mod_contract_olive extends ModelNumRefContracts
|
||||
*
|
||||
* @return string Description of module
|
||||
*/
|
||||
function info()
|
||||
public function info()
|
||||
{
|
||||
global $langs;
|
||||
|
||||
@@ -81,7 +81,7 @@ class mod_contract_olive extends ModelNumRefContracts
|
||||
* @param Contrat $contract Object contract
|
||||
* @return string Return next value
|
||||
*/
|
||||
function getNextValue($objsoc, $contract)
|
||||
public function getNextValue($objsoc, $contract)
|
||||
{
|
||||
global $langs;
|
||||
return '';
|
||||
@@ -101,7 +101,7 @@ class mod_contract_olive extends ModelNumRefContracts
|
||||
* -3 ErrorProductCodeAlreadyUsed
|
||||
* -4 ErrorPrefixRequired
|
||||
*/
|
||||
function verif($db, &$code, $product, $type)
|
||||
public function verif($db, &$code, $product, $type)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ class mod_contract_serpis extends ModelNumRefContracts
|
||||
*
|
||||
* @return string text description
|
||||
*/
|
||||
function info()
|
||||
public function info()
|
||||
{
|
||||
global $langs;
|
||||
return $langs->trans("SimpleNumRefModelDesc", $this->prefix);
|
||||
@@ -73,7 +73,7 @@ class mod_contract_serpis extends ModelNumRefContracts
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
function getExample()
|
||||
public function getExample()
|
||||
{
|
||||
return $this->prefix."0501-0001";
|
||||
}
|
||||
@@ -84,7 +84,7 @@ class mod_contract_serpis extends ModelNumRefContracts
|
||||
*
|
||||
* @return boolean false if conflit, true if ok
|
||||
*/
|
||||
function canBeActivated()
|
||||
public function canBeActivated()
|
||||
{
|
||||
global $conf,$langs,$db;
|
||||
|
||||
@@ -119,7 +119,7 @@ class mod_contract_serpis extends ModelNumRefContracts
|
||||
* @param Object $contract contract object
|
||||
* @return string Value if OK, 0 if KO
|
||||
*/
|
||||
function getNextValue($objsoc, $contract)
|
||||
public function getNextValue($objsoc, $contract)
|
||||
{
|
||||
global $db,$conf;
|
||||
|
||||
@@ -153,7 +153,7 @@ class mod_contract_serpis extends ModelNumRefContracts
|
||||
}
|
||||
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Return next value
|
||||
*
|
||||
@@ -161,7 +161,7 @@ class mod_contract_serpis extends ModelNumRefContracts
|
||||
* @param Object $objforref contract object
|
||||
* @return string Value if OK, 0 if KO
|
||||
*/
|
||||
function contract_get_num($objsoc, $objforref)
|
||||
public function contract_get_num($objsoc, $objforref)
|
||||
{
|
||||
// phpcs:enable
|
||||
return $this->getNextValue($objsoc, $objforref);
|
||||
|
||||
@@ -43,7 +43,7 @@ abstract class ModelePDFContract extends CommonDocGenerator
|
||||
public $error='';
|
||||
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Return list of active generation modules
|
||||
*
|
||||
@@ -51,7 +51,7 @@ abstract class ModelePDFContract extends CommonDocGenerator
|
||||
* @param integer $maxfilenamelength Max length of value to show
|
||||
* @return array List of templates
|
||||
*/
|
||||
static function liste_modeles($db, $maxfilenamelength = 0)
|
||||
public static function liste_modeles($db, $maxfilenamelength = 0)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $conf;
|
||||
@@ -82,7 +82,7 @@ class ModelNumRefContracts
|
||||
*
|
||||
* @return boolean true if module can be used
|
||||
*/
|
||||
function isEnabled()
|
||||
public function isEnabled()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -92,7 +92,7 @@ class ModelNumRefContracts
|
||||
*
|
||||
* @return string text description
|
||||
*/
|
||||
function info()
|
||||
public function info()
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("contracts");
|
||||
@@ -104,7 +104,7 @@ class ModelNumRefContracts
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
function getExample()
|
||||
public function getExample()
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("contracts");
|
||||
@@ -116,7 +116,7 @@ class ModelNumRefContracts
|
||||
*
|
||||
* @return boolean false if conflict, true if ok
|
||||
*/
|
||||
function canBeActivated()
|
||||
public function canBeActivated()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -128,7 +128,7 @@ class ModelNumRefContracts
|
||||
* @param Object $contract contract object
|
||||
* @return string Value
|
||||
*/
|
||||
function getNextValue($objsoc, $contract)
|
||||
public function getNextValue($objsoc, $contract)
|
||||
{
|
||||
global $langs;
|
||||
return $langs->trans("NotAvailable");
|
||||
@@ -139,7 +139,7 @@ class ModelNumRefContracts
|
||||
*
|
||||
* @return string Value
|
||||
*/
|
||||
function getVersion()
|
||||
public function getVersion()
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("admin");
|
||||
|
||||
Reference in New Issue
Block a user