Ajout mode_reglement et cond_reglement

This commit is contained in:
Regis Houssin 2006-02-15 19:43:04 +00:00
parent 1ba6fd703c
commit 8f1e99d977
2 changed files with 5 additions and 2 deletions

View File

@ -385,7 +385,7 @@ if ($_POST['action'] == 'set_contact')
if ($_POST["action"] == 'setconditions')
{
$propal = new Propal($db, $_GET["propalid"]);
$propal->cond_reglement=$_POST['cond_reglement_id'];
$propal->cond_reglement = $_POST['cond_reglement_id'];
$sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_cond_reglement='".$_POST['cond_reglement_id']."' WHERE rowid='".$propalid."'";
$result = $db->query($sql);
}
@ -394,7 +394,7 @@ if ($_POST["action"] == 'setconditions')
if ($_POST["action"] == 'setmode')
{
$propal = new Propal($db, $_GET["propalid"]);
$propal->mode_reglement=$_POST['mode_reglement_id'];
$propal->mode_reglement = $_POST['mode_reglement_id'];
$sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_mode_reglement='".$_POST['mode_reglement_id']."' WHERE rowid='".$propalid."'";
$result = $db->query($sql);
}

View File

@ -503,6 +503,7 @@ class Propal
$sql.= ", ".$this->db->pdate("fin_validite")."as dfv, model_pdf";
$sql.= ", note, note_public";
$sql.= ", fk_projet, fk_statut, remise_percent, fk_user_author";
$sql.= ", fk_cond_reglement, fk_mode_reglement";
$sql.= ", c.label as statut_label";
$sql.= " FROM ".MAIN_DB_PREFIX."propal";
$sql.= "," . MAIN_DB_PREFIX."c_propalst as c";
@ -539,6 +540,8 @@ class Propal
$this->note_public = $obj->note_public;
$this->statut = $obj->fk_statut;
$this->statut_libelle = $obj->statut_label;
$this->cond_reglement = $obj->fk_cond_reglement;
$this->mode_reglement = $obj->fk_mode_reglement;
$this->user_author_id = $obj->fk_user_author;