Ajout total
This commit is contained in:
parent
1f2dd17597
commit
f350b748ed
@ -42,7 +42,7 @@ $hselected = $h;
|
|||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$year = strftime("%Y",time());
|
$year = strftime("%Y",time());
|
||||||
|
$total = 0;
|
||||||
dolibarr_fiche_head($head, $hselected, "Distributeurs");
|
dolibarr_fiche_head($head, $hselected, "Distributeurs");
|
||||||
|
|
||||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
@ -65,6 +65,7 @@ if ($resql)
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]><td>".$row[1].'</td>';
|
print "<tr $bc[$var]><td>".$row[1].'</td>';
|
||||||
print '<td align="right">'.price($row[0]).'</td></tr>';
|
print '<td align="right">'.price($row[0]).'</td></tr>';
|
||||||
|
$total += $row[0];
|
||||||
}
|
}
|
||||||
$db->free();
|
$db->free();
|
||||||
}
|
}
|
||||||
@ -72,6 +73,8 @@ else
|
|||||||
{
|
{
|
||||||
print $db->error() . ' ' . $sql;
|
print $db->error() . ' ' . $sql;
|
||||||
}
|
}
|
||||||
|
print "<tr $bc[$var]><td>Total</td>";
|
||||||
|
print '<td align="right">'.price($total).'</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '</td></tr><tr><td valign="top" width="70%">';
|
print '</td></tr><tr><td valign="top" width="70%">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user