Renvoie automatique sur la facture lors de la creation

This commit is contained in:
Rodolphe Quiedeville 2004-02-10 19:02:19 +00:00
parent 2069135968
commit af9db9d5ef

View File

@ -36,8 +36,6 @@ require("./bank/account.class.php");
require("../contrat/contrat.class.php");
require("../commande/commande.class.php");
llxHeader();
/*
* Sécurité accés client
*/
@ -93,6 +91,11 @@ if ($HTTP_POST_VARS["action"] == 'add')
$facture->add_product($HTTP_POST_VARS["idprod4"],$HTTP_POST_VARS["qty4"],$HTTP_POST_VARS["remise_percent4"]);
$facid = $facture->create($user);
if ($facid)
{
Header("Location: facture.php?facid=".$facid);
}
}
else
{
@ -324,6 +327,8 @@ if ($action == 'pdf')
facture_pdf_create($db, $facid);
}
llxHeader();
$html = new Form($db);
/*********************************************************************
@ -358,7 +363,6 @@ if ($_GET["action"] == 'create')
$societe_id = $commande->soc_id;
}
if ( $db->query($sql) )
{
$num = $db->num_rows();