From 2b6c54a59a9fe02b42058b50b4915f08b5a40ad0 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 25 Nov 2003 11:07:18 +0000 Subject: [PATCH] =?UTF-8?q?Suppression=20provisoire=20des=20m=E9thodes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/expedition/commande.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/expedition/commande.php b/htdocs/expedition/commande.php index c4f5f286c4c..e9ef5484cd9 100644 --- a/htdocs/expedition/commande.php +++ b/htdocs/expedition/commande.php @@ -58,10 +58,10 @@ $html = new Form($db); /* */ /* *************************************************************************** */ -if ($id > 0) +if ($_GET["id"] > 0) { $commande = New Commande($db); - if ( $commande->fetch($id) > 0) + if ( $commande->fetch($_GET["id"]) > 0) { $commande->livraison_array(); @@ -125,7 +125,7 @@ if ($id > 0) echo ''; $sql = "SELECT l.fk_product, l.description, l.price, l.qty, l.rowid, l.tva_tx, l.remise_percent, l.subprice"; - $sql .= " FROM llx_commandedet as l WHERE l.fk_commande = $id ORDER BY l.rowid"; + $sql .= " FROM llx_commandedet as l WHERE l.fk_commande = ".$commande->id." ORDER BY l.rowid"; $result = $db->query($sql); if ($result) @@ -216,12 +216,12 @@ if ($id > 0) print ''; - - print ''; + /* + print ''; print ''; - + */ print ''; } print "
'; $html->select_array("entrepot_id",$entrepot->list_array()); print '
Méthode
Mode d\'expédition'; $html->select_array("entrepot_id",$entrepot->list_array()); print '
"; @@ -277,7 +277,7 @@ if ($id > 0) if ($user->rights->expedition->valider && $reste_a_livrer_total == 0 && $commande->statut < 3) { - print 'Clôturer'; + print 'Clôturer'; } else { @@ -295,7 +295,7 @@ if ($id > 0) */ $sql = "SELECT cd.fk_product, cd.description, cd.rowid, cd.qty as qty_commande, ed.qty as qty_livre, e.ref, e.rowid as expedition_id"; $sql .= " FROM llx_commandedet as cd , llx_expeditiondet as ed, llx_expedition as e"; - $sql .= " WHERE cd.fk_commande = $id AND cd.rowid = ed.fk_commande_ligne AND ed.fk_expedition = e.rowid"; + $sql .= " WHERE cd.fk_commande = ".$commande->id." AND cd.rowid = ed.fk_commande_ligne AND ed.fk_expedition = e.rowid"; $sql .= " ORDER BY cd.fk_product"; $result = $db->query($sql); if ($result)