diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 856311d8ead..4ac562c6384 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -125,9 +125,8 @@ if ($_POST["action"] == 'addinfacture' && $_POST["qty"], $product->tva_tx, $product->id); - $action = ''; - $mesg = 'Produit ajouté ŕ la facture '; - $mesg .= ''.$facture->ref.''; + Header("Location: ../compta/facture.php?facid=".$facture->id); + } if ($_POST["action"] == 'add_fourn' && $_POST["cancel"] <> 'Annuler') @@ -657,7 +656,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente) $otherprop = $propal->liste_array(1, '<>'.$user->id); if (sizeof($otherprop)) { - print '