Skip to content

Commit

Permalink
New: Add PRODUCT_PRICE_MODIFY trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
simnandez committed Sep 5, 2012
1 parent 4f056c7 commit a3ecb12
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions htdocs/product/class/product.class.php
Expand Up @@ -1027,6 +1027,16 @@ function updatePrice($id, $newprice, $newpricebase, $user, $newvat='',$newminpri
$this->localtax2_tx = $localtax2;

$this->_log_price($user,$level);

// Appel des triggers
include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
$interface=new Interfaces($this->db);
$result=$interface->run_triggers('PRODUCT_PRICE_MODIFY',$this,$user,$langs,$conf);
if ($result < 0)
{
$error++; $this->errors=$interface->errors;
}
// Fin appel triggers
}
else
{
Expand Down

0 comments on commit a3ecb12

Please sign in to comment.