Merge pull request #1052 from PaulPoulain/943
T943: Put the total of the price at the bottom of the propal list
This commit is contained in:
commit
bcc9b81bab
@ -211,7 +211,6 @@ if ($result)
|
|||||||
{
|
{
|
||||||
$objectstatic=new Propal($db);
|
$objectstatic=new Propal($db);
|
||||||
$userstatic=new User($db);
|
$userstatic=new User($db);
|
||||||
|
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
if ($socid)
|
if ($socid)
|
||||||
@ -394,6 +393,25 @@ if ($result)
|
|||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($total>0)
|
||||||
|
{
|
||||||
|
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>';
|
print '</table>';
|
||||||
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user