src-db/database/model/functions/C_DP_MANAGEMENT_POST.xml
changeset 799 fef2c5e2feb7
parent 756 ae11e4610537
child 1178 9d1c8b3fd305
--- a/src-db/database/model/functions/C_DP_MANAGEMENT_POST.xml	Wed Apr 30 10:48:47 2008 +0000
+++ b/src-db/database/model/functions/C_DP_MANAGEMENT_POST.xml	Mon May 05 06:59:24 2008 +0000
@@ -53,6 +53,7 @@
   v_CashLine_ID NUMBER;
   v_ispaid CHAR(1);
   v_Settlement_Cancel_ID NUMBER;
+  v_DBA_ErrorLog_ID NUMBER;
   --  Parameter
   TYPE RECORD IS REF CURSOR;
     Cur_Parameter RECORD;
@@ -318,6 +319,7 @@
     DECLARE
       v_Code NUMBER:=SQLCODE;
     BEGIN
+      AD_SEQUENCE_NEXT('DBA_ERRORLOG', v_AD_Client_ID, v_DBA_ErrorLog_ID);
       INSERT
       INTO DBA_ERRORLOG
         (
@@ -326,7 +328,7 @@
         )
         VALUES
         (
-          DBA_ErrorLog_Seq.NEXTVAL, now(), v_Code,
+          v_DBA_ErrorLog_ID, now(), v_Code,
           v_ResultStr, 'C_DP_Management_Post'
         )
         ;