Merge pull request #10234 from aspangaro/7.0_alert_bank

Fix: Accountancy - remove alert on bank account configuration when bank account is closed
This commit is contained in:
Laurent Destailleur 2018-12-16 17:41:23 +01:00 committed by GitHub
commit 6275355cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -840,7 +840,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';
$sql = 'SELECT COUNT(rowid) as nb FROM '.MAIN_DB_PREFIX.'bank_account WHERE fk_accountancy_journal IS NULL AND clos=0';
$resql = $db->query($sql);
if ($resql)
{