pgsql/investigations/ar-creditmemo.sql
authorEdward <edward@roojs.com>
Tue, 4 Feb 2014 06:13:14 +0000 (14:13 +0800)
committerEdward <edward@roojs.com>
Tue, 4 Feb 2014 06:13:14 +0000 (14:13 +0800)
pgsql/investigations/ar-creditmemo.sql

index 370eafd..bc9d266 100644 (file)
@@ -136,7 +136,7 @@ BEGIN
                gltrans_amount > 0;
          IF NOT FOUND THEN
     
-            RETURN 'can not find sequence for journaln nubmer';
+            RAISE EXCEPTION 'can not find sequence for journaln nubmer %, accnt_id = %',_ar.aropen_journalnumber,v_credit_accnt_id ;
         END IF;
     END IF;