From 959d2b8f1257c06bc36af3436a2214f31966b3fa Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 12 Apr 2006 14:58:38 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20le=20changement=20de=20date=20via=20le?= =?UTF-8?q?=20calendrier=20se=20faisait=20au=20m=EAme=20endroit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/contrat/fiche.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index b1c0284e175..d86017d9e0d 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -153,7 +153,7 @@ if ($_POST["action"] == 'addligne' && $user->rights->contrat->creer) $result = 0; $contrat = new Contrat($db); $result=$contrat->fetch($_GET["id"]); - if (($_POST["p_idprod"] > 0 && $_POST["mode"]=='predefined') || ($_POST["mode"]=='libre')) + if ($_POST["p_idprod"] > 0 && $_POST["mode"]=='predefined') { //print $_POST["desc"]." - ".$_POST["pu"]." - ".$_POST["pqty"]." - ".$_POST["tva_tx"]." - ".$_POST["p_idprod"]." - ".$_POST["premise"]; exit; $result = $contrat->addline( @@ -167,6 +167,19 @@ if ($_POST["action"] == 'addligne' && $user->rights->contrat->creer) $date_end ); } + elseif ($_POST["mode"]=='libre') + { + $result = $contrat->addline( + $_POST["desc"], + $_POST["pu"], + $_POST["pqty"], + $_POST["tva_tx"], + 0, + $_POST["premise"], + $date_start_sl, + $date_end_sl + ); + } if ($result >= 0) {