Use an english code

This commit is contained in:
Laurent Destailleur 2011-05-04 20:11:33 +00:00
parent e6f69de1b2
commit a670d449be

View File

@ -462,9 +462,9 @@ class Commande extends CommonObject
// Appel des triggers // Appel des triggers
include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php"); include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
$interface=new Interfaces($this->db); $interface=new Interfaces($this->db);
$result=$interface->run_triggers('ORDER_CLOTURE',$this,$user,$langs,$conf); $result=$interface->run_triggers('ORDER_CLOSE',$this,$user,$langs,$conf);
if ($result < 0) { if ($result < 0) {
$error++; $this->errors=$interface->errors; $error++; $this->errors=$interface->errors;
return -1; return -1;
} }
// Fin appel triggers // Fin appel triggers
@ -516,7 +516,7 @@ class Commande extends CommonObject
if ($result < 0) { $error++; } if ($result < 0) { $error++; }
} }
} }
if (! $error) if (! $error)
{ {
// Appel des triggers // Appel des triggers
@ -526,7 +526,7 @@ class Commande extends CommonObject
if ($result < 0) { $error++; $this->errors=$interface->errors; } if ($result < 0) { $error++; $this->errors=$interface->errors; }
// Fin appel triggers // Fin appel triggers
} }
if (! $error) if (! $error)
{ {
$this->statut=-1; $this->statut=-1;
@ -758,12 +758,12 @@ class Commande extends CommonObject
// Load source object // Load source object
$object->fetch($fromid); $object->fetch($fromid);
$objFrom = $object; $objFrom = $object;
// Change socid if needed // Change socid if needed
if (! empty($socid) && $socid != $object->socid) if (! empty($socid) && $socid != $object->socid)
{ {
$objsoc = new Societe($this->db); $objsoc = new Societe($this->db);
if ($objsoc->fetch($socid)>0) if ($objsoc->fetch($socid)>0)
{ {
$object->socid = $objsoc->id; $object->socid = $objsoc->id;
@ -772,7 +772,7 @@ class Commande extends CommonObject
$object->fk_project = ''; $object->fk_project = '';
$object->fk_delivery_address = ''; $object->fk_delivery_address = '';
} }
// TODO Change product price if multi-prices // TODO Change product price if multi-prices
} }