Fixes Issue 26288, Fixes Issue 26070: Initial Organization Setup process failed
authorAtul Gaware <atul.gaware@openbravo.com>
Wed, 16 Apr 2014 14:54:15 +0530
changeset 22927 426835c75f78
parent 22926 8698d60bb9cf
child 22928 e367e4ce1f98
Fixes Issue 26288, Fixes Issue 26070: Initial Organization Setup process failed
src-db/database/model/triggers/C_ACCTSCHEMA_ELEMENT_TRG.xml
--- a/src-db/database/model/triggers/C_ACCTSCHEMA_ELEMENT_TRG.xml	Wed Apr 16 13:12:00 2014 +0200
+++ b/src-db/database/model/triggers/C_ACCTSCHEMA_ELEMENT_TRG.xml	Wed Apr 16 14:54:15 2014 +0530
@@ -46,8 +46,10 @@
 			IF(INSERTING) THEN
 				v_CreateCombination:=TRUE;
 			END IF;
-			IF(UPDATING AND COALESCE(:NEW.C_Element_ID,'0') <> COALESCE(:OLD.C_Element_ID,'0')) THEN
-				v_CreateCombination:=TRUE;
+			IF(UPDATING) THEN 
+			  IF(COALESCE(:NEW.C_Element_ID,'0') <> COALESCE(:OLD.C_Element_ID,'0')) THEN
+					v_CreateCombination:=TRUE;
+				END IF;
 			END IF;
 		END IF;
   END IF;