From b546d40be76e33ba559a58879d11230dbb9f50b0 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 15 Feb 2006 18:44:10 +0000 Subject: [PATCH] Ajout mode_reglement et cond_reglement --- htdocs/comm/fiche.php | 6 +++--- htdocs/comm/propal.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 1a00a82242f..8894df224e1 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -63,8 +63,8 @@ if ($_POST["action"] == 'setconditions') { $societe = new Societe($db, $_GET["socid"]); - $societe->cond_reglement=$_POST['mode_reglement_id']; - $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET cond_reglement='".$_POST['mode_reglement_id']."' WHERE idp='".$socid."'"; + $societe->cond_reglement=$_POST['cond_reglement_id']; + $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET cond_reglement='".$_POST['cond_reglement_id']."' WHERE idp='".$socid."'"; $result = $db->query($sql); } // mode de règlement @@ -353,7 +353,7 @@ if ($_socid > 0) print ''; if ($_GET['action'] == 'editconditions') { - $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'mode_reglement_id'); + $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'cond_reglement_id'); } else { diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 1eecea755a1..5e56dd22bb2 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -385,8 +385,8 @@ if ($_POST['action'] == 'set_contact') if ($_POST["action"] == 'setconditions') { $propal = new Propal($db, $_GET["propalid"]); - $propal->cond_reglement=$_POST['mode_reglement_id']; - $sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_cond_reglement='".$_POST['mode_reglement_id']."' WHERE idp='".$propalid."'"; + $propal->cond_reglement=$_POST['cond_reglement_id']; + $sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_cond_reglement='".$_POST['cond_reglement_id']."' WHERE idp='".$propalid."'"; $result = $db->query($sql); }