test constant for keeping customer ref on clone of order like in propal

This commit is contained in:
Christophe Battarel 2019-03-27 10:00:29 +01:00
parent 661a984b8e
commit 1b9cdd021a

View File

@ -1116,7 +1116,7 @@ class Commande extends CommonOrder
$this->date_commande = dol_now(); $this->date_commande = dol_now();
$this->date_creation = ''; $this->date_creation = '';
$this->date_validation = ''; $this->date_validation = '';
$this->ref_client = ''; if (empty($conf->global->MAIN_KEEP_REF_CUSTOMER_ON_CLONING)) $this->ref_client = '';
// Create clone // Create clone
$this->context['createfromclone'] = 'createfromclone'; $this->context['createfromclone'] = 'createfromclone';