Fix stickler
This commit is contained in:
parent
958361b45e
commit
47b9af09a5
@ -36,18 +36,18 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode
|
||||
* @deprecated
|
||||
* @see name
|
||||
*/
|
||||
var $nom='Digitaria';
|
||||
public $nom='Digitaria';
|
||||
|
||||
/**
|
||||
* @var string model name
|
||||
*/
|
||||
var $name='Digitaria';
|
||||
public $name='Digitaria';
|
||||
|
||||
/**
|
||||
* Dolibarr version of the loaded document
|
||||
* @var string
|
||||
*/
|
||||
var $version='dolibarr'; // 'development', 'experimental', 'dolibarr'
|
||||
public $version='dolibarr'; // 'development', 'experimental', 'dolibarr'
|
||||
|
||||
public $prefixcustomeraccountancycode;
|
||||
|
||||
@ -56,7 +56,7 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
function __construct()
|
||||
public function __construct()
|
||||
{
|
||||
global $conf, $langs;
|
||||
if (! isset($conf->global->COMPANY_DIGITARIA_MASK_CUSTOMER) || trim($conf->global->COMPANY_DIGITARIA_MASK_CUSTOMER) == '') $conf->global->COMPANY_DIGITARIA_MASK_CUSTOMER='411';
|
||||
@ -76,7 +76,7 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode
|
||||
* @param Translate $langs Object langs
|
||||
* @return string Description of module
|
||||
*/
|
||||
function info($langs)
|
||||
public function info($langs)
|
||||
{
|
||||
global $conf, $form;
|
||||
|
||||
@ -119,7 +119,7 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode
|
||||
* @param int $type Type of third party (1:customer, 2:supplier, -1:autodetect)
|
||||
* @return string Example
|
||||
*/
|
||||
function getExample($langs, $objsoc=0, $type=-1)
|
||||
public function getExample($langs, $objsoc=0, $type=-1)
|
||||
{
|
||||
global $mysoc;
|
||||
|
||||
@ -143,7 +143,7 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode
|
||||
* @param int $type 'customer' or 'supplier'
|
||||
* @return int >=0 if OK, <0 if KO
|
||||
*/
|
||||
function get_code($db, $societe, $type='')
|
||||
public function get_code($db, $societe, $type='')
|
||||
{
|
||||
// phpcs:enable
|
||||
$i = 0;
|
||||
@ -224,12 +224,12 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode
|
||||
/**
|
||||
* Check accountancy account code for a third party into this->code
|
||||
*
|
||||
* @param DoliDB $db Database handler
|
||||
* @param Societe $societe Third party object
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $code Code of third party
|
||||
* @param int $type 'customer' or 'supplier'
|
||||
* @return int >=0 if OK, <0 if KO
|
||||
*/
|
||||
function checkIfAccountancyCodeIsAlreadyUsed($db, $code, $type='')
|
||||
public function checkIfAccountancyCodeIsAlreadyUsed($db, $code, $type='')
|
||||
{
|
||||
if ($type == 'supplier')
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user