From cd9b0a4c2eb1cf0013dd4ee952a67d6d2c8b97d6 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 26 Nov 2004 17:08:23 +0000 Subject: [PATCH] Ajout bouton FastAppro --- htdocs/product/fiche.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index a0277f71879..4ff7806d1b4 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -48,6 +48,15 @@ if (!$user->rights->produit->lire) $types[0] = $langs->trans("Product"); $types[1] = $langs->trans("Service"); + +if ($_GET["action"] == 'fastappro' && $user->rights->facture->creer) +{ + $product = new Product($db); + $result = $product->fastappro(); + Header("Location: fiche.php?id=".$_GET["id"]); +} + + // Action ajout d'un produit ou service if ($_POST["action"] == 'add' && $user->rights->produit->creer) { @@ -613,7 +622,7 @@ if ($_GET["action"] == '') { if ($product->type == 0 && $user->rights->produit->commander && $num_fournisseur == 1) { - print ''.$langs->trans("Commander").''; + print ''.$langs->trans("Commander").''; }