deprecate set_as_client

This commit is contained in:
Frédéric FRANCE
2023-09-06 13:58:08 +02:00
parent 4ae9cea409
commit 26dff90658
7 changed files with 22 additions and 8 deletions

View File

@@ -505,7 +505,7 @@ class Commande extends CommonOrder
$soc->fetch($this->socid);
// Class of company linked to order
$result = $soc->set_as_client();
$result = $soc->setAsCustomer();
// Define new ref
if (!$error && (preg_match('/^[\(]?PROV/i', $this->ref) || empty($this->ref))) { // empty should not happened, but when it occurs, the test save life