clean code (#29268)

This commit is contained in:
Frédéric FRANCE
2024-04-07 15:01:29 +02:00
committed by GitHub
parent 97240a05b0
commit 95eb1abf2e

View File

@@ -76,6 +76,8 @@ class Account extends CommonObject
/**
* Bank account type. Check TYPE_ constants
* @deprecated
* @see $type
* @var int
*/
public $courant;
@@ -1051,6 +1053,7 @@ class Account extends CommonObject
$this->courant = $obj->courant;
$this->bank = $obj->bank;
$this->clos = $obj->clos;
$this->status = $obj->clos;
$this->rappro = $obj->rappro;
$this->url = $obj->url;
@@ -1857,6 +1860,8 @@ class Account extends CommonObject
$this->label = 'My Big Company Bank account';
$this->courant = Account::TYPE_CURRENT;
$this->clos = Account::STATUS_OPEN;
$this->type = Account::TYPE_CURRENT;
$this->status = Account::STATUS_OPEN;
$this->code_banque = '30001';
$this->code_guichet = '00794';
$this->number = '12345678901';
@@ -1945,11 +1950,6 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobjectline.class.php';
*/
class AccountLine extends CommonObjectLine
{
/**
* @var string Error code (or message)
*/
public $error = '';
/**
* @var DoliDB Database handler.
*/