src-db/database/model/triggers/GL_JOURNAL_CHK_RESTRICT_TRG.xml
changeset 21737 fcb87e990fcd
parent 21682 337545057885
child 26421 908de9299675
--- a/src-db/database/model/triggers/GL_JOURNAL_CHK_RESTRICT_TRG.xml	Fri Dec 27 14:31:41 2013 +0100
+++ b/src-db/database/model/triggers/GL_JOURNAL_CHK_RESTRICT_TRG.xml	Tue Dec 31 17:08:12 2013 +0100
@@ -58,11 +58,7 @@
         OR(COALESCE(:OLD.M_Product_ID, '0') <> COALESCE(:NEW.M_Product_ID, '0'))
         )) 
         THEN RAISE_APPLICATION_ERROR(-20000, '@20501@') ;
-      END IF;
-    
-      IF (:old.c_currency_id <> :new.c_currency_id) THEN
-        UPDATE gl_journalline SET c_currency_id = :new.c_currency_id where gl_journal_id = :old.gl_journal_id;
-      END IF;
+      END IF;    
     END IF;
     IF(DELETING) THEN
       IF(:old.Processed='Y') THEN