src-db/database/model/functions/M_INOUT_POST.xml
changeset 20963 a0563a002814
parent 20951 e7d4140659d1
parent 20594 64f14e743de3
child 20976 3f5e8c7117d6
--- a/src-db/database/model/functions/M_INOUT_POST.xml	Tue Aug 06 12:25:00 2013 +0200
+++ b/src-db/database/model/functions/M_INOUT_POST.xml	Wed Aug 07 09:31:14 2013 +0200
@@ -323,9 +323,11 @@
         SELECT C_CHK_OPEN_PERIOD(v_AD_Org_ID, v_DateAcct, NULL, v_DocType_ID) 
         INTO v_available_period
         FROM DUAL;
-        
+
         IF (v_available_period<>1) THEN
-          RAISE_APPLICATION_ERROR(-20000, '@PeriodNotAvailable@');
+          IF (v_docAction <> 'RC') THEN
+             RAISE_APPLICATION_ERROR(-20000, '@PeriodNotAvailable@');
+          END IF;
         END IF;
       END IF;