From 95eb1abf2ef6bbad5db3e6f261a3c19ac30947cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 7 Apr 2024 15:01:29 +0200 Subject: [PATCH] clean code (#29268) --- htdocs/compta/bank/class/account.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php index 45e3b1d4bd5..dfb140e33d9 100644 --- a/htdocs/compta/bank/class/account.class.php +++ b/htdocs/compta/bank/class/account.class.php @@ -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. */