Clean code
This commit is contained in:
parent
c00bef83a8
commit
f3d54aada5
@ -1510,7 +1510,6 @@ class Adherent extends CommonObject
|
||||
}
|
||||
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Function to get partnerships array
|
||||
*
|
||||
@ -1519,7 +1518,6 @@ class Adherent extends CommonObject
|
||||
*/
|
||||
public function fetchPartnerships($mode)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $langs;
|
||||
|
||||
require_once DOL_DOCUMENT_ROOT.'/parntership/class/partnership.class.php';
|
||||
|
||||
@ -740,6 +740,12 @@ class Societe extends CommonObject
|
||||
public $multicurrency_code;
|
||||
|
||||
|
||||
// Fields loaded by fetchPartnerships()
|
||||
|
||||
public $partnerships = array();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @var Account|string Default BAN account
|
||||
*/
|
||||
@ -4806,4 +4812,22 @@ class Societe extends CommonObject
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to get partnerships array
|
||||
*
|
||||
* @param string $mode 'member' or 'thirdparty'
|
||||
* @return int <0 if KO, >0 if OK
|
||||
*/
|
||||
public function fetchPartnerships($mode)
|
||||
{
|
||||
global $langs;
|
||||
|
||||
require_once DOL_DOCUMENT_ROOT.'/parntership/class/partnership.class.php';
|
||||
|
||||
|
||||
$this->partnerships[] = array();
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user