From a3ecb1203b266af8a40155ef710ae9a3ec66e9ea Mon Sep 17 00:00:00 2001 From: simnandez Date: Wed, 5 Sep 2012 14:38:16 +0200 Subject: [PATCH 1/2] New: Add PRODUCT_PRICE_MODIFY trigger --- htdocs/product/class/product.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 { From f164bb6758b7c7f6393875bdafb1ae1748cb5fa4 Mon Sep 17 00:00:00 2001 From: simnandez Date: Wed, 5 Sep 2012 14:40:11 +0200 Subject: [PATCH 2/2] New: Add PRODUCT_PRICE_MODIFY trigger --- ChangeLog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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).