Bank account sharing for multi company

This commit is contained in:
Maxime Kohlhaas 2013-08-01 16:15:53 +02:00
parent 98bd56e229
commit eccbf89ecd

View File

@ -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)