Dans les commandes à facturer, on n'affiche que les commandes ayant un montant restant à facturer > 0
This commit is contained in:
parent
14c86ba13f
commit
56e4d57fac
@ -272,8 +272,9 @@ if ($conf->commande->enabled && $user->rights->commande->lire)
|
|||||||
$tot_ttc=0;
|
$tot_ttc=0;
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$var=!$var;
|
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
|
if ($obj->total_ttc-$obj->tot_fttc >0) {
|
||||||
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print "<td width=\"20%\"><a href=\"commande/fiche.php?id=$obj->rowid\">".img_object($langs->trans("ShowOrder"),"order").'</a> ';
|
print "<td width=\"20%\"><a href=\"commande/fiche.php?id=$obj->rowid\">".img_object($langs->trans("ShowOrder"),"order").'</a> ';
|
||||||
print "<a href=\"commande/fiche.php?id=$obj->rowid\">".$obj->ref.'</a></td>';
|
print "<a href=\"commande/fiche.php?id=$obj->rowid\">".$obj->ref.'</a></td>';
|
||||||
@ -286,6 +287,7 @@ if ($conf->commande->enabled && $user->rights->commande->lire)
|
|||||||
$tot_ht += $obj->total_ht;
|
$tot_ht += $obj->total_ht;
|
||||||
$tot_ttc += $obj->total_ttc;
|
$tot_ttc += $obj->total_ttc;
|
||||||
$tot_tobill += ($obj->total_ttc-$obj->tot_fttc);
|
$tot_tobill += ($obj->total_ttc-$obj->tot_fttc);
|
||||||
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user