Correction du problme lors du classement de la propale comme facture
This commit is contained in:
parent
2c818e6f3b
commit
385c4f8b57
@ -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;";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user