From eccbf89ecd82c3133061a994828c80bef82f658e Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas <maxime@atm-consulting.fr> Date: Thu, 1 Aug 2013 16:15:53 +0200 Subject: [PATCH] Bank account sharing for multi company --- htdocs/admin/facture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index a3bf9259568..c4c8c19169d 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -654,7 +654,7 @@ $sql = "SELECT rowid, label"; $sql.= " FROM ".MAIN_DB_PREFIX."bank_account"; $sql.= " WHERE clos = 0"; $sql.= " AND courant = 1"; -$sql.= " AND entity = ".$conf->entity; +$sql.= " AND entity IN (".getEntity('bank_account', 1).")"; $var=True; $resql=$db->query($sql); if ($resql) -- GitLab