From 58f5f0400f3b1a9c88dbc904df1432c722f9aaa1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 11 Apr 2005 08:37:00 +0000 Subject: [PATCH] Suppression codes inadequat --- htdocs/fourn/commande/fiche.php | 76 --------------------------------- 1 file changed, 76 deletions(-) diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index b6b9dd629f8..6ac15a278bb 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -550,82 +550,6 @@ if ($_GET["id"] > 0) } print "

\n"; - - print '
'; - /* - * Liste des expéditions - */ - $sql = "SELECT e.rowid,e.ref,".$db->pdate("e.date_expedition")." as de"; - $sql .= " FROM ".MAIN_DB_PREFIX."expedition as e"; - $sql .= " WHERE e.fk_commande = ". $commande->id; - - $result = $db->query($sql); - if ($result) - { - $num = $db->num_rows(); - if ($num) - { - print_titre("Expéditions"); - $i = 0; $total = 0; - print ''; - print "\n"; - - $var=True; - while ($i < $num) - { - $objp = $db->fetch_object(); - $var=!$var; - print ""; - print ''; - print "\n"; - $i++; - } - print "
ExpéditionDate
'.stripslashes($objp->ref).'".strftime("%d %B %Y",$objp->de)."
"; - } - } - else - { - dolibarr_print_error($db); - } - print " 
"; - - /* - * Liste des factures - */ - $sql = "SELECT f.rowid,f.facnumber,".$db->pdate("f.datef")." as df"; - $sql .= " FROM ".MAIN_DB_PREFIX."facture as f, ".MAIN_DB_PREFIX."co_fa as cf"; - $sql .= " WHERE f.rowid = cf.fk_facture AND cf.fk_commande = ". $commande->id; - - $result = $db->query($sql); - if ($result) - { - $num = $db->num_rows($result); - if ($num) - { - print_titre($langs->trans("Bills")); - $i = 0; $total = 0; - print ''; - print "\n"; - - $var=True; - while ($i < $num) - { - $objp = $db->fetch_object($result); - $var=!$var; - print ""; - print ''; - print "\n"; - $i++; - } - print "
".$langs->trans("Bills")."".$langs->trans("Date")."
'.stripslashes($objp->facnumber).'".strftime("%d %B %Y",$objp->df)."
"; - } - } - else - { - dolibarr_print_error($db); - } - print " 
"; - /* * Documents générés *