diff --git a/ChangeLog b/ChangeLog index b6ecd3577e1..b8e4affd67d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,7 +7,7 @@ English Dolibarr ChangeLog For users: - New: If field "signature" is filled into user table, text is added at end of predefined email texts. If option MAIL_DO_NOT_USE_SIGN is on, this - feautre is disabled. + feature is disabled. - New: Add link "Back to list" on all cards. - New: After first install, warning are visible onto mandatory setup not configured. Show also total number of activated modules. @@ -67,6 +67,7 @@ For developers: action/calendar, trips and expenses, dons, vat payment, contact/society, contract, product lines, expedition, order supplier and order invoice (lines included), intervention card, project, tasks. - New: Add ChromePHP output into syslog module. +- New: Add PRODUCT_PRICE_MODIFY trigger. For translators: - New: Update language files (de, tr, pt, ca, es, en, fr). diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 62365027f6d..0d80a5bbc7b 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -1027,6 +1027,16 @@ class Product extends CommonObject $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 {