From e8f26ad33b5c7d609a83f2e3a44823ffd6fe7d8a Mon Sep 17 00:00:00 2001 From: lalaina rasamoelina Date: Tue, 18 Jun 2013 10:59:19 +0200 Subject: [PATCH] T943 If there is only one page, we keep label "Total HT", but if there is more than one page, we use "Total HT for this page" --- htdocs/comm/propal/list.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index 64e18262c78..c9e0e436a72 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -391,10 +391,20 @@ if ($result) if ($total>0) { - $var=!$var; - print ''.$langs->trans("Total HT").''; - print ''.price($total).''; - print ''; + if($num<$limit){ + $var=!$var; + print ''.$langs->trans("Total HT").''; + print ''.price($total).''; + print ''; + } + else + { + $var=!$var; + print ''.$langs->trans("Total HT for this page").''; + print ''.price($total).''; + print ''; + } + } print '';