Update bookkeeping.class.php

This commit is contained in:
Laurent Destailleur 2022-09-25 13:04:04 +02:00 committed by GitHub
parent ecb6814e89
commit be770eefdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -891,11 +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 .= ' AND t.subledger_account != ""'; $sql .= " AND t.subledger_account != ''";
$sql .= ' ORDER BY t.subledger_account ASC'; $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)) {