diff --git a/htdocs/societe/rib.php b/htdocs/societe/rib.php index 0017a7486cf..8b8f5c50292 100644 --- a/htdocs/societe/rib.php +++ b/htdocs/societe/rib.php @@ -96,6 +96,7 @@ dol_fiche_head($head, 'rib', $langs->trans("ThirdParty"),0,'company'); $account = new CompanyBankAccount($db); $account->fetch(0,$soc->id); +if (empty($account->socid)) $account->socid=$soc->id;