Fix the display of the banner with multicompany

Before : if a account of a entity require to define the Journal code, Banner displayed in all entities.

Now : Show the banner only in the entity concerned.
This commit is contained in:
Pierre Ardoin 2020-02-12 09:11:39 +01:00 committed by GitHub
parent 6badf724cf
commit c7181830fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -972,7 +972,7 @@ if (empty($action) || $action == 'view') {
// Test that setup is complete
$sql = 'SELECT COUNT(rowid) as nb FROM '.MAIN_DB_PREFIX.'bank_account WHERE fk_accountancy_journal IS NULL AND clos=0';
$sql = 'SELECT COUNT(rowid) as nb FROM '.MAIN_DB_PREFIX.'bank_account WHERE entity IN ('.getEntity('bank_account').') AND fk_accountancy_journal IS NULL AND clos=0';
$resql = $db->query($sql);
if ($resql)
{