Correction du problme lors du classement de la propale comme facture

This commit is contained in:
Rodolphe Quiedeville 2005-01-19 11:14:25 +00:00
parent 2c818e6f3b
commit 385c4f8b57

View File

@ -51,19 +51,21 @@ if ($user->societe_id > 0)
$socidp = $user->societe_id;
}
llxHeader();
if ($action == 'setstatut')
if ($_GET["action"] == 'setstatut')
{
/*
* Classée la facture comme facturée
*/
$propal = new Propal($db);
$propal->id = $propalid;
$propal->cloture($user->id, $statut, $note);
$propal->id = $_GET["propalid"];
$propal->cloture($user, $_GET["statut"], $note);
}
llxHeader();
if ( $action == 'delete' )
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."propal WHERE rowid = $propalid;";