Fix: Add option to avoid reporting by default a total that is false.

This commit is contained in:
Laurent Destailleur 2013-01-03 20:42:26 +01:00
parent 801fd2e0e5
commit f87281bfdb

View File

@ -385,6 +385,9 @@ if ($resql)
$subtotal+=$objp->total_ht; $subtotal+=$objp->total_ht;
$i++; $i++;
} }
if (! empty($conf->global->MAIN_SHOW_TOTAL_FOR_LIMITED_LIST))
{
$var=!$var; $var=!$var;
print '<tr '.$bc[$var].'>'; print '<tr '.$bc[$var].'>';
print '<td nowrap="nowrap" colspan="5">'.$langs->trans('TotalHT').'</td>'; print '<td nowrap="nowrap" colspan="5">'.$langs->trans('TotalHT').'</td>';
@ -392,6 +395,8 @@ if ($resql)
print '<td align="right" nowrap="nowrap">'.price($total).'</td>'; print '<td align="right" nowrap="nowrap">'.price($total).'</td>';
print '<td nowrap="nowrap">&nbsp;</td>'; print '<td nowrap="nowrap">&nbsp;</td>';
print '</tr>'; print '</tr>';
}
print '</table>'; print '</table>';
print '</form>'; print '</form>';