Add trigger on update product buyprice
This commit is contained in:
parent
e418e10df0
commit
8729790016
@ -201,6 +201,16 @@ class ProductFournisseur extends Product
|
||||
if ($resql)
|
||||
{
|
||||
$this->db->commit();
|
||||
|
||||
// Appel des triggers
|
||||
include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
|
||||
$interface=new Interfaces($this->db);
|
||||
$result=$interface->run_triggers('UPDATE_BUYPRICE',$this,$user,$langs,$conf);
|
||||
if ($result < 0)
|
||||
{
|
||||
$error++; $this->errors=$interface->errors;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user