Fix total when no data
This commit is contained in:
parent
60d1b08f84
commit
1eb8833356
@ -749,6 +749,7 @@ while ($i < min($num, $limit))
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($num > 0) {
|
||||||
// Show sub-total of last shown account
|
// Show sub-total of last shown account
|
||||||
if (empty($conf->global->ACCOUNTING_ENABLE_LETTERING) || empty($arrayfields['t.lettering_code']['checked'])) {
|
if (empty($conf->global->ACCOUNTING_ENABLE_LETTERING) || empty($arrayfields['t.lettering_code']['checked'])) {
|
||||||
$colnumber = 3;
|
$colnumber = 3;
|
||||||
@ -783,6 +784,7 @@ if ($balance > 0)
|
|||||||
}
|
}
|
||||||
print '<td colspan="'.$colspanend.'"></td>';
|
print '<td colspan="'.$colspanend.'"></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Show total line
|
// Show total line
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/list_print_total.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/list_print_total.tpl.php';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user