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).'