Fix stickler-ci

This commit is contained in:
Alexandre SPANGARO 2022-02-16 14:21:45 +01:00
parent 948f20c2b6
commit 9a0a222b63

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