From a670d449be509dee8e22c192b94b7e7d93a2121a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 4 May 2011 20:11:33 +0000 Subject: [PATCH] Use an english code --- htdocs/commande/class/commande.class.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index c9c153293e8..a05ec9755bf 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -462,9 +462,9 @@ class Commande extends CommonObject // Appel des triggers include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php"); $interface=new Interfaces($this->db); - $result=$interface->run_triggers('ORDER_CLOTURE',$this,$user,$langs,$conf); - if ($result < 0) { - $error++; $this->errors=$interface->errors; + $result=$interface->run_triggers('ORDER_CLOSE',$this,$user,$langs,$conf); + if ($result < 0) { + $error++; $this->errors=$interface->errors; return -1; } // Fin appel triggers @@ -516,7 +516,7 @@ class Commande extends CommonObject if ($result < 0) { $error++; } } } - + if (! $error) { // Appel des triggers @@ -526,7 +526,7 @@ class Commande extends CommonObject if ($result < 0) { $error++; $this->errors=$interface->errors; } // Fin appel triggers } - + if (! $error) { $this->statut=-1; @@ -758,12 +758,12 @@ class Commande extends CommonObject // Load source object $object->fetch($fromid); $objFrom = $object; - + // Change socid if needed if (! empty($socid) && $socid != $object->socid) { $objsoc = new Societe($this->db); - + if ($objsoc->fetch($socid)>0) { $object->socid = $objsoc->id; @@ -772,7 +772,7 @@ class Commande extends CommonObject $object->fk_project = ''; $object->fk_delivery_address = ''; } - + // TODO Change product price if multi-prices }