FIX: bookkeeping/export error when not reconciled option is checked (#33433)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Jyhere 2025-03-13 10:00:07 +01:00 committed by GitHub
parent e19b3ffd9e
commit dc2a08bf07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1153,6 +1153,8 @@ class BookKeeping extends CommonObject
} else {
$sqlwhere[] = natural_search("t.code_journal", $value, 3, 1);
}
} elseif ($key == 't.reconciled_option') {
$sqlwhere[] = 't.lettering_code IS NULL';
} else {
$sqlwhere[] = natural_search($key, $value, 0, 1);
}