Skip to content
Snippets Groups Projects
Commit a9bb9f89 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: un prospect n'était pas passé comme client à la validation d'une facture ou d'une

 commande
parent 053f12de
No related branches found
No related tags found
No related merge requests found
......@@ -175,6 +175,9 @@ class Commande extends CommonObject
$objMod = new $modName($this->db);
$soc = new Societe($this->db);
$soc->fetch($this->socidp);
// Classe la société rattachée comme client
$result=$soc->set_as_client();
// on vérifie si la commande est en numérotation provisoire
$comref = substr($this->ref, 1, 4);
......
......@@ -977,6 +977,12 @@ class Facture extends CommonObject
if ($error == 0)
{
// Classe la société rattachée comme client
$soc=new Societe($this->db);
$soc->id = $this->socidp;
$result=$soc->set_as_client();
$this->ref = $numfa;
$this->use_webcal=($conf->global->PHPWEBCALENDAR_BILLSTATUS=='always'?1:0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment