Skip to content
Snippets Groups Projects
Commit e78baab5 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge branch '3.6' of git@github.com:Dolibarr/dolibarr.git into 3.6

parents 48b2d818 1d0d3ab7
No related branches found
No related tags found
No related merge requests found
...@@ -898,6 +898,13 @@ class Commande extends CommonOrder ...@@ -898,6 +898,13 @@ class Commande extends CommonOrder
$this->date_validation = ''; $this->date_validation = '';
$this->ref_client = ''; $this->ref_client = '';
// Set ref
require_once DOL_DOCUMENT_ROOT ."/core/modules/commande/".$conf->global->COMMANDE_ADDON.'.php';
$obj = $conf->global->COMMANDE_ADDON;
$modCommande = new $obj;
$this->ref = $modCommande->getNextValue($objsoc,$this);
// Create clone // Create clone
$result=$this->create($user); $result=$this->create($user);
if ($result < 0) $error++; if ($result < 0) $error++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment