2
0
forked from Wavyzz/dolibarr

Fix td balance

This commit is contained in:
Laurent Destailleur
2019-04-17 01:18:02 +02:00
parent b5bf6830e9
commit 8310e09786

View File

@@ -575,7 +575,13 @@ foreach ($accounts as $key=>$type)
$i++;
}
if (! $found) print '<tr class="oddeven"><td colspan="'.$totalarray['nbfield'].'" class="opacitymedium">'.$langs->trans("None").'</td></tr>';
// If no record found
if (! $found)
{
$colspan=1;
foreach($arrayfields as $key => $val) { if (! empty($val['checked'])) $colspan++; }
print '<tr><td colspan="'.$colspan.'" class="opacitymedium">'.$langs->trans("NoRecordFound").'</td></tr>';
}
// Show total line
if (isset($totalarray['totalbalancefield']) && $lastcurrencycode != 'various') // If there is several currency, $lastcurrencycode is set to 'various' before