Rename with correct name

This commit is contained in:
Laurent Destailleur 2010-09-10 22:18:04 +00:00
parent f368dd2c5e
commit 28f572c6fc

View File

@ -102,16 +102,16 @@ class InterfacePropalWorkflow
if ($action == 'PROPAL_CLOSE_SIGNED') if ($action == 'PROPAL_CLOSE_SIGNED')
{ {
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
return $this->_createSupplierOrderFromPropal($action,$object,$user,$langs,$conf); return $this->_createOrderFromPropal($action,$object,$user,$langs,$conf);
} }
return 0; return 0;
} }
/** /**
* Create a supplier order from a propal * Create an order from a propal
*/ */
function _createSupplierOrderFromPropal($action,$object,$user,$langs,$conf) function _createOrderFromPropal($action,$object,$user,$langs,$conf)
{ {
$error=0; $error=0;
@ -125,7 +125,7 @@ class InterfacePropalWorkflow
$order = new Commande($this->db); $order = new Commande($this->db);
$orderline = new OrderLine($this->db); $orderline = new OrderLine($this->db);
$order->date_commande = time(); $order->date_commande = dol_now();
$order->source = 0; $order->source = 0;
for ($i = 0 ; $i < sizeof($object->lines) ; $i++) for ($i = 0 ; $i < sizeof($object->lines) ; $i++)