From 736fae90c084a5f9ba6d860ac0d3d49123aa326c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 13 Dec 2006 10:02:12 +0000 Subject: [PATCH] =?UTF-8?q?G=E9n=E8re=20le=20pdf=20lors=20de=20la=20valida?= =?UTF-8?q?tion=20de=20la=20commande?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/commande/fiche.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 74949d4816b..bf49b340fa8 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -147,7 +147,7 @@ if ($_POST['action'] == 'addligne' && $user->rights->fournisseur->commande->cree $outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs"); $outputlangs->setDefaultLang($_REQUEST['lang_id']); } - commande_supplier_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs); + commande_supplier_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs); } else { @@ -196,7 +196,7 @@ if ($_POST['action'] == 'updateligne' && $user->rights->fournisseur->commande->c exit; } -if ($_GET['action'] == 'deleteline' && $user->rights->fournisseur->commande->creer) +if ($_GET['action'] == 'deleteline' && $user->rights->fournisseur->commande->creer) { $commande = new CommandeFournisseur($db); $commande->fetch($_GET['id']); @@ -217,9 +217,10 @@ if ($_POST['action'] == 'confirm_valid' && $_POST['confirm'] == 'yes' && $user-> $commande->fetch($_GET['id']); $soc = new Societe($db); $soc->fetch($commande->socid); - $result = $commande->valid($user); + $result = $commande->valid($user); if ($result >= 0) { + commande_supplier_pdf_create($db, $commande->id, $commande->modelpdf, $outputlangs); Header("Location: fiche.php?id=".$_GET["id"]); exit; }