Fix stickler-ci

This commit is contained in:
Alexandre SPANGARO 2022-02-16 05:17:38 +01:00
parent 1d974f67f0
commit 11d1d9a0af

View File

@ -216,7 +216,7 @@ if ($object->nature == 4) { // Bank journal
// Test that setup is complete (we are in accounting, so test on entity is always on $conf->entity only, no sharing allowed)
$sql = "SELECT COUNT(rowid) as nb";
$sql .= " FROM " . MAIN_DB_PREFIX . "bank_account";
$sql .= " WHERE entity = " .((int) $conf->entity);
$sql .= " WHERE entity = '" . ((int) $conf->entity) . "'";
$sql .= " AND fk_accountancy_journal IS NULL";
$sql .= " AND clos=0";
$resql = $db->query($sql);