src-db/database/model/functions/M_INOUT_POST.xml
changeset 20594 64f14e743de3
parent 20289 db23e74594b1
child 20963 a0563a002814
child 21232 7951261e0cc0
--- a/src-db/database/model/functions/M_INOUT_POST.xml	Sun Jun 16 12:36:52 2013 +0530
+++ b/src-db/database/model/functions/M_INOUT_POST.xml	Mon Jun 17 13:42:03 2013 +0200
@@ -314,9 +314,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;