Fixed bug [ 1811334 ] G/L Journal batch process does not report error properly
authorCarlos Romero <carlos.romero@openbravo.com>
Wed, 21 May 2008 15:46:39 +0000
changeset 980 f2c4a1d793cb
parent 979 36cb9aecf607
child 981 ba4346cd2ca6
Fixed bug [ 1811334 ] G/L Journal batch process does not report error properly
src-db/database/model/functions/GL_JOURNAL_POST.xml
--- a/src-db/database/model/functions/GL_JOURNAL_POST.xml	Wed May 21 15:35:52 2008 +0000
+++ b/src-db/database/model/functions/GL_JOURNAL_POST.xml	Wed May 21 15:46:39 2008 +0000
@@ -237,7 +237,7 @@
   IF(p_PInstance_ID IS NOT NULL) THEN
     AD_UPDATE_PINSTANCE(p_PInstance_ID, NULL, 'N', 0, v_ResultStr) ;
   ELSE
-    RAISE;
+    RAISE_APPLICATION_ERROR(-20100, v_ResultStr) ;
   END IF;
   RETURN;
 END GL_JOURNAL_POST