From 61cdbdf9e54222f5a4f6d1ffecb2afb2d94508fd Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 19 Nov 2003 15:16:32 +0000 Subject: [PATCH] Plusieurs modif --- htdocs/expedition/expedition.class.php | 25 --------------- htdocs/expedition/fiche.php | 44 ++++++-------------------- 2 files changed, 9 insertions(+), 60 deletions(-) diff --git a/htdocs/expedition/expedition.class.php b/htdocs/expedition/expedition.class.php index c06aa30d930..bb7a15490e3 100644 --- a/htdocs/expedition/expedition.class.php +++ b/htdocs/expedition/expedition.class.php @@ -162,12 +162,10 @@ class Expedition $error++; } - if ($error == 0 ) { return 1; } - } /** * @@ -234,29 +232,6 @@ class Expedition } return $result ; } - /** - * Annule la commande - * - * - */ - Function cancel($user) - { - if ($user->rights->commande->valider) - { - - $sql = "UPDATE llx_commande SET fk_statut = -1"; - $sql .= " WHERE rowid = $this->id AND fk_statut = 1 ;"; - - if ($this->db->query($sql) ) - { - return 1; - } - else - { - print $this->db->error() . ' in ' . $sql; - } - } - } /** * Ajoute un produit diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php index a4564e481fc..8159e14bbf0 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -26,7 +26,6 @@ $user->getrights('expedition'); if (!$user->rights->expedition->lire) accessforbidden(); -require("../project.class.php"); require("../propal.class.php"); require("../product/stock/entrepot.class.php"); @@ -38,15 +37,6 @@ if ($user->societe_id > 0) $action = ''; $socidp = $user->societe_id; } -/* - * - */ -if ($HTTP_POST_VARS["action"] == 'classin') -{ - $commande = new Commande($db); - $commande->fetch($_GET["id"]); - $commande->classin($HTTP_POST_VARS["projetid"]); -} /* * */ @@ -143,10 +133,10 @@ if ($HTTP_POST_VARS["action"] == 'create') print ''; print ''; print ''; - print ''; + print ''; - print '"; print ""; @@ -328,23 +318,23 @@ else print '
Client'.$soc->nom.''.$soc->nom.''; - print $commande->statuts[$commande->statut]; + print ''; + print "
Date
'; print ''; - print ''; print '"; print ""; - print '\n"; + print '\n"; print ""; - print "\n"; + print "\n"; print '"; - print ""; + print ""; print "
Client'; + print ''; print ''.$soc->nom.''; - print $commande->statuts[$commande->statut]; + print "
Commande'.$commande->ref."'.$commande->ref."
Date".strftime("%A %d %B %Y",$commande->date)."".strftime("%A %d %B %Y",$expedition->date)."'; print "
Auteur$author->fullname
Auteur$author->fullname
"; @@ -576,23 +566,7 @@ else * * */ - if ($action == 'classer') - { - print "

\n"; - print ''; - print ''; - print '"; - print '
Projet'; - - $proj = new Project($db); - $html->select_array("projetid",$proj->liste_array($commande->soc_id)); - - print "

'; - } - /* - * - * - */ + if ($action == 'presend') { $replytoname = $user->fullname;