Add trigger on update product buyprice

This commit is contained in:
geoffrey.girard 2014-01-17 10:38:18 +01:00
parent e418e10df0
commit 8729790016

View File

@ -201,6 +201,16 @@ class ProductFournisseur extends Product
if ($resql) if ($resql)
{ {
$this->db->commit(); $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; return 0;
} }
else else