diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 915951c0cb9f985b3febf08cf54ec5a28b007306..7890f9036b424478383a5b6d26e8ca2e69c44e1a 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -939,6 +939,9 @@ class Propal extends CommonObject $this->fk_delivery_address = ''; } + // reset ref_client + $this->ref_client = ''; + // TODO Change product price if multi-prices } else @@ -961,7 +964,7 @@ class Propal extends CommonObject $this->date = $now; $this->datep = $now; // deprecated $this->fin_validite = $this->date + ($this->duree_validite * 24 * 3600); - $this->ref_client = ''; + if (empty(MAIN_KEEP_REF_CUSTOMER_ON_CLONING)) $this->ref_client = ''; // Set ref require_once DOL_DOCUMENT_ROOT ."/core/modules/propale/".$conf->global->PROPALE_ADDON.'.php';