From 56e4d57fac638fcb27e655575f1e8de6495a96bc Mon Sep 17 00:00:00 2001 From: tipaul Date: Wed, 25 May 2005 11:58:02 +0000 Subject: [PATCH] =?UTF-8?q?Dans=20les=20commandes=20=E0=20facturer,=20on?= =?UTF-8?q?=20n'affiche=20que=20les=20commandes=20ayant=20un=20montant=20r?= =?UTF-8?q?estant=20=E0=20facturer=20>=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/index.php | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index f68b6e31405..bfee19b909e 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -80,10 +80,10 @@ if ($_GET["action"] == 'del_bookmark') */ print_titre($langs->trans("AccountancyTreasuryArea")); -print ''; - -print '
'; - +print ''; + +print '"; - print "'; - - print ''; - print ''; - print ''; - print ''; - $tot_ht += $obj->total_ht; - $tot_ttc += $obj->total_ttc; - $tot_tobill += ($obj->total_ttc-$obj->tot_fttc); + if ($obj->total_ttc-$obj->tot_fttc >0) { + $var=!$var; + print ""; + print "'; + + print ''; + print ''; + print ''; + print ''; + $tot_ht += $obj->total_ht; + $tot_ttc += $obj->total_ttc; + $tot_tobill += ($obj->total_ttc-$obj->tot_fttc); + } $i++; } $var=!$var;
'; + /* * Zone recherche facture */ @@ -272,20 +272,22 @@ if ($conf->commande->enabled && $user->rights->commande->lire) $tot_ttc=0; while ($i < $num) { - $var=!$var; $obj = $db->fetch_object($resql); - print "
rowid\">".img_object($langs->trans("ShowOrder"),"order").' '; - print "rowid\">".$obj->ref.''.img_object($langs->trans("ShowCompany"),"company").' '; - print ''.dolibarr_trunc($obj->nom,50).''.price($obj->total_ht).''.price($obj->total_ttc).''.price($obj->total_ttc-$obj->tot_fttc).'
rowid\">".img_object($langs->trans("ShowOrder"),"order").' '; + print "rowid\">".$obj->ref.''.img_object($langs->trans("ShowCompany"),"company").' '; + print ''.dolibarr_trunc($obj->nom,50).''.price($obj->total_ht).''.price($obj->total_ttc).''.price($obj->total_ttc-$obj->tot_fttc).'