From f69aaa242b1d945408c2f70367de97893b9a422a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 13 Apr 2020 13:10:15 +0200 Subject: [PATCH] Fix scrutinizer --- htdocs/user/class/userbankaccount.class.php | 24 +++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/htdocs/user/class/userbankaccount.class.php b/htdocs/user/class/userbankaccount.class.php index 2999c1efa6c..79df9d287ec 100644 --- a/htdocs/user/class/userbankaccount.class.php +++ b/htdocs/user/class/userbankaccount.class.php @@ -30,11 +30,20 @@ require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php'; /** - * Class to manage bank accounts description of third parties + * Class to manage bank accounts description of users */ class UserBankAccount extends Account { - public $socid; + /** + * @var string ID to identify managed object + */ + public $element = 'user_bank_account'; + + /** + * @var string Name of table without prefix where object is stored + */ + public $table_element = 'user_rib'; + /** * Date creation record (datec) @@ -50,6 +59,13 @@ class UserBankAccount extends Account */ public $datem; + /** + * User id of bank account + * + * @var integer + */ + public $userid; + /** * Constructor @@ -60,7 +76,7 @@ class UserBankAccount extends Account { $this->db = $db; - $this->socid = 0; + $this->userid = 0; $this->solde = 0; $this->error_number = 0; } @@ -169,7 +185,7 @@ class UserBankAccount extends Account $obj = $this->db->fetch_object($resql); $this->id = $obj->rowid; - $this->socid = $obj->fk_soc; + $this->userid = $obj->fk_soc; $this->bank = $obj->bank; $this->code_banque = $obj->code_banque; $this->code_guichet = $obj->code_guichet;