Fixed issue 33298 enabling/disabling code is missing in c_orderdiscount_trg
authorSandra Huguet <sandra.huguet@openbravo.com>
Thu, 23 Jun 2016 10:28:40 +0200
changeset 29932 c01922c14219
parent 29931 b62e898c24aa
child 29933 ef8f3dbd5d07
child 29940 48c35d75995a
Fixed issue 33298 enabling/disabling code is missing in c_orderdiscount_trg

c_orderdiscount_trg trigger does not have enabling/disabling code
All triggers in OB need to have enabling and disabling code snippet in the beginning
src-db/database/model/triggers/C_ORDERDISCOUNT_TRG.xml
--- a/src-db/database/model/triggers/C_ORDERDISCOUNT_TRG.xml	Fri Jun 24 20:09:23 2016 +0000
+++ b/src-db/database/model/triggers/C_ORDERDISCOUNT_TRG.xml	Thu Jun 23 10:28:40 2016 +0200
@@ -22,6 +22,10 @@
   v_RO        NUMBER;
   v_Processed CHAR(1) ;
 BEGIN
+
+    IF AD_isTriggerEnabled()='N' THEN RETURN;
+    END IF;
+    
   IF UPDATING THEN
     SELECT PROCESSED
     INTO v_Processed