mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Fix: works on repair broken features
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
* \file htdocs/includes/triggers/interface_modWorkflow_WorkflowManager.class.php
|
||||
* \ingroup core
|
||||
* \brief Trigger file for workflows
|
||||
* \version $Id: interface_modWorkflow_WorkflowManager.class.php,v 1.8 2011/07/31 23:29:45 eldy Exp $
|
||||
* \version $Id: interface_modWorkflow_WorkflowManager.class.php,v 1.9 2011/08/10 19:55:21 hregis Exp $
|
||||
*/
|
||||
|
||||
|
||||
@@ -105,7 +105,13 @@ class InterfaceWorkflowManager
|
||||
{
|
||||
include_once(DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php');
|
||||
$order = new Commande($this->db);
|
||||
$ret=$order->createFromProposal($object,0);
|
||||
|
||||
// Actions on extra fields (by external module or standard code)
|
||||
include_once(DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php');
|
||||
$hookmanager=new HookManager($this->db);
|
||||
$hookmanager->callHooks(array('ordercard'));
|
||||
|
||||
$ret=$order->createFromProposal($object,0,$hookmanager);
|
||||
if ($ret < 0) { $this->error=$invoice->error; $this->errors[]=$invoice->error; }
|
||||
return $ret;
|
||||
}
|
||||
@@ -119,7 +125,13 @@ class InterfaceWorkflowManager
|
||||
{
|
||||
include_once(DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php');
|
||||
$invoice = new Facture($this->db);
|
||||
$ret=$invoice->createFromOrder($object,0);
|
||||
|
||||
// Actions on extra fields (by external module or standard code)
|
||||
include_once(DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php');
|
||||
$hookmanager=new HookManager($this->db);
|
||||
$hookmanager->callHooks(array('invoicecard'));
|
||||
|
||||
$ret=$invoice->createFromOrder($object,$hookmanager);
|
||||
if ($ret < 0) { $this->error=$invoice->error; $this->errors[]=$invoice->error; }
|
||||
return $ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user