From 6b4cf5c8d9e40a450561ddb5bbab444ba6545564 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Wed, 28 Sep 2022 20:39:47 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/accountancy/class/accountingjournal.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/class/accountingjournal.class.php b/htdocs/accountancy/class/accountingjournal.class.php index 20e09a8f6bc..3134dfa95ba 100644 --- a/htdocs/accountancy/class/accountingjournal.class.php +++ b/htdocs/accountancy/class/accountingjournal.class.php @@ -472,7 +472,7 @@ class AccountingJournal extends CommonObject // Compatibility with Mysql 5.7 if ($in_bookkeeping == 'already') { $sql .= " AND EXISTS (SELECT iab.fk_docdet FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping AS iab WHERE iab.fk_docdet = ad.rowid AND doc_type = 'asset')"; - } else if ($in_bookkeeping == 'notyet') { + } elseif ($in_bookkeeping == 'notyet') { $sql .= " AND NOT EXISTS (SELECT iab.fk_docdet FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping AS iab WHERE iab.fk_docdet = ad.rowid AND doc_type = 'asset')"; } $sql .= " AND ad.ref != ''"; // not reversal lines