2
0
forked from Wavyzz/dolibarr

Ajout possibilit d'attribuer une ref client sur une propale, utile pour les revendeurs

This commit is contained in:
Regis Houssin
2006-06-13 14:31:37 +00:00
parent cbd40391b0
commit 17ee9ca44b
6 changed files with 53 additions and 10 deletions

View File

@@ -119,6 +119,7 @@ class Commande
$this->date_livraison = $propal->date_livraison;
$this->adresse_livraison_id = $propal->adresse_livraison_id;
$this->contact_id = $propal->contactid;
$this->ref_client = $propal->ref_client;
/* D<>finit la soci<63>t<EFBFBD> comme un client */
$soc = new Societe($this->db);
@@ -350,7 +351,7 @@ class Commande
$sql.= ' '.$this->db->idate($this->date_commande).',';
$sql.= ' '.$this->source.', ';
$sql.= " '".addslashes($this->note)."', ";
$sql.= " '".$this->ref_client."', '".$this->modelpdf.'\', \''.$this->cond_reglement_id.'\', \''.$this->mode_reglement_id.'\',';
$sql.= " '".addslashes($this->ref_client)."', '".$this->modelpdf.'\', \''.$this->cond_reglement_id.'\', \''.$this->mode_reglement_id.'\',';
$sql.= ' '.($this->date_livraison?$this->db->idate($this->date_livraison):'null').',';
$sql.= " '".$this->adresse_livraison_id."',";
$sql.= " '".$this->remise_absolue."',";