details:   https://code.openbravo.com/erp/devel/pi/rev/426835c75f78
changeset: 22883:426835c75f78
user:      Atul Gaware <atul.gaware <at> openbravo.com>
date:      Wed Apr 16 14:54:15 2014 +0530
summary:   Fixes Issue 26288, Fixes Issue 26070: Initial Organization Setup 
process failed

diffstat:

 src-db/database/model/triggers/C_ACCTSCHEMA_ELEMENT_TRG.xml |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 8698d60bb9cf -r 426835c75f78 
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;

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to