From 8310e09786c4f30f86eac8cf251eb4414f9703f3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 17 Apr 2019 01:18:02 +0200 Subject: [PATCH] Fix td balance --- htdocs/compta/bank/list.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/bank/list.php b/htdocs/compta/bank/list.php index c18791f8329..080cef69778 100644 --- a/htdocs/compta/bank/list.php +++ b/htdocs/compta/bank/list.php @@ -575,7 +575,13 @@ foreach ($accounts as $key=>$type) $i++; } -if (! $found) print ''.$langs->trans("None").''; +// If no record found +if (! $found) +{ + $colspan=1; + foreach($arrayfields as $key => $val) { if (! empty($val['checked'])) $colspan++; } + print ''.$langs->trans("NoRecordFound").''; +} // Show total line if (isset($totalarray['totalbalancefield']) && $lastcurrencycode != 'various') // If there is several currency, $lastcurrencycode is set to 'various' before