From ecb6814e89c2d2d368360ed95343438d6d62fb74 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Sun, 25 Sep 2022 06:42:51 +0200 Subject: [PATCH 1/2] FIX Accountancy - Some manuals operations are displayed in subledger --- htdocs/accountancy/class/bookkeeping.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/accountancy/class/bookkeeping.class.php b/htdocs/accountancy/class/bookkeeping.class.php index c6dd938ed78..a6894f6079f 100644 --- a/htdocs/accountancy/class/bookkeeping.class.php +++ b/htdocs/accountancy/class/bookkeeping.class.php @@ -892,6 +892,7 @@ class BookKeeping extends CommonObject // Affichage par compte comptable if (!empty($option)) { $sql .= ' AND t.subledger_account IS NOT NULL'; + $sql .= ' AND t.subledger_account != ""'; $sql .= ' ORDER BY t.subledger_account ASC'; } else { $sql .= ' ORDER BY t.numero_compte ASC'; From be770eefdcbc702caf6289f566f07d2ab1c07217 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 25 Sep 2022 13:04:04 +0200 Subject: [PATCH 2/2] Update bookkeeping.class.php --- htdocs/accountancy/class/bookkeeping.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/accountancy/class/bookkeeping.class.php b/htdocs/accountancy/class/bookkeeping.class.php index a6894f6079f..551bf9bf1d2 100644 --- a/htdocs/accountancy/class/bookkeeping.class.php +++ b/htdocs/accountancy/class/bookkeeping.class.php @@ -891,11 +891,11 @@ class BookKeeping extends CommonObject } // Affichage par compte comptable if (!empty($option)) { - $sql .= ' AND t.subledger_account IS NOT NULL'; - $sql .= ' AND t.subledger_account != ""'; - $sql .= ' ORDER BY t.subledger_account ASC'; + $sql .= " AND t.subledger_account IS NOT NULL"; + $sql .= " AND t.subledger_account != ''"; + $sql .= " ORDER BY t.subledger_account ASC"; } else { - $sql .= ' ORDER BY t.numero_compte ASC'; + $sql .= " ORDER BY t.numero_compte ASC"; } if (!empty($sortfield)) {