From f87281bfdb936d4513fb4846862683e228f0381c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 3 Jan 2013 20:42:26 +0100 Subject: [PATCH] Fix: Add option to avoid reporting by default a total that is false. --- htdocs/commande/liste.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php index e04c090c3d4..50b45b79d64 100644 --- a/htdocs/commande/liste.php +++ b/htdocs/commande/liste.php @@ -385,13 +385,18 @@ if ($resql) $subtotal+=$objp->total_ht; $i++; } - $var=!$var; - print ''; - print ''.$langs->trans('TotalHT').''; - // Total HT - print ''.price($total).''; - print ' '; - print ''; + + if (! empty($conf->global->MAIN_SHOW_TOTAL_FOR_LIMITED_LIST)) + { + $var=!$var; + print ''; + print ''.$langs->trans('TotalHT').''; + // Total HT + print ''.price($total).''; + print ' '; + print ''; + } + print ''; print '';