Merge pull request #22398 from aspangaro/14p41

FIX Accountancy - Some manuals operations are displayed in subledger
This commit is contained in:
Laurent Destailleur 2022-09-25 13:04:22 +02:00 committed by GitHub
commit 9b33bd1b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -891,10 +891,11 @@ class BookKeeping extends CommonObject
} }
// Affichage par compte comptable // Affichage par compte comptable
if (!empty($option)) { if (!empty($option)) {
$sql .= ' AND t.subledger_account IS NOT NULL'; $sql .= " AND t.subledger_account IS NOT NULL";
$sql .= ' ORDER BY t.subledger_account ASC'; $sql .= " AND t.subledger_account != ''";
$sql .= " ORDER BY t.subledger_account ASC";
} else { } else {
$sql .= ' ORDER BY t.numero_compte ASC'; $sql .= " ORDER BY t.numero_compte ASC";
} }
if (!empty($sortfield)) { if (!empty($sortfield)) {