Fix: Add option to avoid reporting by default a total that is false.
This commit is contained in:
parent
801fd2e0e5
commit
f87281bfdb
@ -385,13 +385,18 @@ if ($resql)
|
|||||||
$subtotal+=$objp->total_ht;
|
$subtotal+=$objp->total_ht;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$var=!$var;
|
|
||||||
print '<tr '.$bc[$var].'>';
|
if (! empty($conf->global->MAIN_SHOW_TOTAL_FOR_LIMITED_LIST))
|
||||||
print '<td nowrap="nowrap" colspan="5">'.$langs->trans('TotalHT').'</td>';
|
{
|
||||||
// Total HT
|
$var=!$var;
|
||||||
print '<td align="right" nowrap="nowrap">'.price($total).'</td>';
|
print '<tr '.$bc[$var].'>';
|
||||||
print '<td nowrap="nowrap"> </td>';
|
print '<td nowrap="nowrap" colspan="5">'.$langs->trans('TotalHT').'</td>';
|
||||||
print '</tr>';
|
// Total HT
|
||||||
|
print '<td align="right" nowrap="nowrap">'.price($total).'</td>';
|
||||||
|
print '<td nowrap="nowrap"> </td>';
|
||||||
|
print '</tr>';
|
||||||
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user