diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php
index c59d8e68ebd..7b8ad9db631 100644
--- a/htdocs/commande/commande.class.php
+++ b/htdocs/commande/commande.class.php
@@ -42,6 +42,10 @@ class Commande
var $socidp;
var $contactid;
var $brouillon;
+ var $cond_reglement_id;
+ var $cond_reglement_code;
+ var $mode_reglement_id;
+ var $mode_reglement_code;
// Pour board
var $nbtodo;
@@ -233,8 +237,8 @@ class Commande
{
$this->projetid = 0;
}
- $sql = 'INSERT INTO '.MAIN_DB_PREFIX.'commande (fk_soc, date_creation, fk_user_author, fk_projet, date_commande, source, note, ref_client, model_pdf) ';
- $sql .= ' VALUES ('.$this->soc_id.', now(), '.$user->id.', '.$this->projetid.', '.$this->db->idate($this->date_commande).', '.$this->source.', \''.$this->note.'\', \''.$this->ref_client.'\', \''.$this->modelpdf.'\')';
+ $sql = 'INSERT INTO '.MAIN_DB_PREFIX.'commande (fk_soc, date_creation, fk_user_author, fk_projet, date_commande, source, note, ref_client, model_pdf, fk_cond_reglement, fk_mode_reglement) ';
+ $sql .= ' VALUES ('.$this->soc_id.', now(), '.$user->id.', '.$this->projetid.', '.$this->db->idate($this->date_commande).', '.$this->source.', \''.$this->note.'\', \''.$this->ref_client.'\', \''.$this->modelpdf.'\', '.$this->cond_reglement_id.', '.$this->mode_reglement_id.')';
if ( $this->db->query($sql) )
{
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 96b8590a1f3..61c83face8a 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -647,11 +647,10 @@ else
// Conditions et modes de réglement
print '
| ';
- print '';
+ print ' |
';
print '';
if ($_GET['action'] == 'editconditions')
{
@@ -662,12 +661,11 @@ else
$html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$commande->id,$commande->cond_reglement_id,'none');
}
print ' | ';
- print '';
- print '';
+ print '';
print ' | ';
if ($_GET['action'] == 'editmode')
{
|