diff --git a/htdocs/accountancy/bookkeeping/listbyaccount.php b/htdocs/accountancy/bookkeeping/listbyaccount.php
index 642573ed8c6..9d0974be1a6 100644
--- a/htdocs/accountancy/bookkeeping/listbyaccount.php
+++ b/htdocs/accountancy/bookkeeping/listbyaccount.php
@@ -1120,7 +1120,7 @@ while ($i < min($num, $limit)) {
// Amount debit
if (!empty($arrayfields['t.debit']['checked'])) {
- print '
'.($line->debit ? price($line->debit) : '').' | ';
+ print ''.($line->debit != 0 ? price($line->debit) : '').' | ';
if (!$i) {
$totalarray['nbfield']++;
}
@@ -1132,7 +1132,7 @@ while ($i < min($num, $limit)) {
// Amount credit
if (!empty($arrayfields['t.credit']['checked'])) {
- print ''.($line->credit ? price($line->credit) : '').' | ';
+ print ''.($line->credit != 0 ? price($line->credit) : '').' | ';
if (!$i) {
$totalarray['nbfield']++;
}