Fixes bug 0008392 Now Copy Version works in Process Plan with UUID.
authorRafa Roda Palacios <rafael.roda@openbravo.com>
Tue, 07 Apr 2009 19:05:23 +0200
changeset 3545 adb69eb2ec61
parent 3544 6c1b178bb9cd
child 3546 1981bfff8d14
Fixes bug 0008392 Now Copy Version works in Process Plan with UUID.
src-db/database/model/functions/MA_COPY_VERSION.xml
--- a/src-db/database/model/functions/MA_COPY_VERSION.xml	Tue Apr 07 18:04:44 2009 +0200
+++ b/src-db/database/model/functions/MA_COPY_VERSION.xml	Tue Apr 07 19:05:23 2009 +0200
@@ -29,7 +29,7 @@
   TYPE RECORD IS REF CURSOR;
     Cur_Parameter RECORD;
     --  Record Info
-    v_Version NUMBER;
+    v_Version VARCHAR2(32);
     v_ProcessPlanVersion_ID VARCHAR2(32);
     v_Client_ID VARCHAR2(32);
     v_Org_ID VARCHAR2(32);
@@ -70,7 +70,7 @@
       v_Org_ID:=Cur_Parameter.AD_Org_ID;
       v_Client_ID:=Cur_Parameter.AD_Client_ID;
       IF(Cur_Parameter.ParameterName='MA_Processplan_Version_ID') THEN
-        v_Version:=Cur_Parameter.P_Number;
+        v_Version:=Cur_Parameter.P_String;
         DBMS_OUTPUT.PUT_LINE('  Version=' || v_Version) ;
       END IF;
     END LOOP; --  Get Parameter