Skip to content
Snippets Groups Projects
Commit 43d50b36 authored by fcharpentier's avatar fcharpentier
Browse files

Add trigger on shipping validation

parent 56f626da
Branches
Tags
No related merge requests found
......@@ -465,10 +465,25 @@ class Livraison extends CommonObject
return -1;
}
// Appel des triggers
include_once(DOL_DOCUMENT_ROOT.'/core/class/interfaces.class.php');
$interface = new Interfaces($this->db);
$result = $interface->run_triggers('DELIVERY_VALIDATE', $this, $user, $langs, $conf);
// Fin appel triggers
if ($result < 0)
{
$this->db->rollback();
$this->error = $interface->errors;
dol_syslog("livraison.class.php::valid ".$this->error, LOG_ERR);
return -1;
}
else
{
$this->db->commit();
dol_syslog("livraison.class.php::valid commit");
return 1;
}
}
/** \brief Cree le bon de livraison depuis une expedition existante
* \param user Utilisateur qui cree
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment