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"

This commit is contained in:
lalaina rasamoelina 2013-06-18 10:59:19 +02:00
parent feb7af490a
commit e8f26ad33b

View File

@ -391,10 +391,20 @@ if ($result)
if ($total>0)
{
$var=!$var;
print '<tr class="liste_total"><td align="left">'.$langs->trans("Total HT").'</td>';
print '<td colspan="5" align="right"">'.price($total).'<td colspan="3"</td>';
print '</tr>';
if($num<$limit){
$var=!$var;
print '<tr class="liste_total"><td align="left">'.$langs->trans("Total HT").'</td>';
print '<td colspan="5" align="right"">'.price($total).'<td colspan="3"</td>';
print '</tr>';
}
else
{
$var=!$var;
print '<tr class="liste_total"><td align="left">'.$langs->trans("Total HT for this page").'</td>';
print '<td colspan="5" align="right"">'.price($total).'<td colspan="3"</td>';
print '</tr>';
}
}
print '</table>';