src-db/database/model/triggers/GL_JOURNALLINE2_TRG.xml
changeset 21737 fcb87e990fcd
parent 20217 d62cb5baa0c1
child 25470 7c00db2d6532
--- a/src-db/database/model/triggers/GL_JOURNALLINE2_TRG.xml	Fri Dec 27 14:31:41 2013 +0100
+++ b/src-db/database/model/triggers/GL_JOURNALLINE2_TRG.xml	Tue Dec 31 17:08:12 2013 +0100
@@ -34,10 +34,9 @@
     
     IF AD_isTriggerEnabled()='N' THEN RETURN;
     END IF;
-
-
   IF(UPDATING) THEN
-    IF NOT((COALESCE(:old.AMTSOURCEDR, 0) <> COALESCE(:NEW.AMTSOURCEDR, 0) OR COALESCE(:old.AMTSOURCECR, 0) <> COALESCE(:NEW.AMTSOURCECR, 0) OR COALESCE(:old.C_CURRENCY_ID, '0') <> COALESCE(:NEW.C_CURRENCY_ID, '0'))) THEN
+    IF NOT((COALESCE(:old.AMTSOURCEDR, 0) <> COALESCE(:NEW.AMTSOURCEDR, 0) OR COALESCE(:old.AMTSOURCECR, 0) <> COALESCE(:NEW.AMTSOURCECR, 0) 
+            OR COALESCE(:old.C_CURRENCY_ID, '0') <> COALESCE(:NEW.C_CURRENCY_ID, '0') OR  COALESCE(:old.currencyrate, '0') <> COALESCE(:NEW.currencyrate, '0'))) THEN
       RETURN;
     END IF;
   END IF;