src-db/database/model/functions/M_UPDATE_PARETO_PRODUCT.xml
changeset 1605 8a0fe0193bef
parent 1273 3f48377a0023
child 1684 916be19be567
--- a/src-db/database/model/functions/M_UPDATE_PARETO_PRODUCT.xml	Wed Sep 03 17:10:52 2008 +0000
+++ b/src-db/database/model/functions/M_UPDATE_PARETO_PRODUCT.xml	Wed Sep 03 17:55:37 2008 +0000
@@ -1,13 +1,13 @@
 <?xml version="1.0"?>
   <database name="FUNCTION M_UPDATE_PARETO_PRODUCT">
     <function name="M_UPDATE_PARETO_PRODUCT" type="NULL">
-      <parameter name="p_pinstance_id" type="NUMERIC" mode="in">
+      <parameter name="p_pinstance_id" type="VARCHAR" mode="in">
         <default/>
       </parameter>
-      <parameter name="p_warehouse_id" type="NUMERIC" mode="in">
+      <parameter name="p_warehouse_id" type="VARCHAR" mode="in">
         <default/>
       </parameter>
-      <parameter name="p_org_id" type="NUMERIC" mode="in">
+      <parameter name="p_org_id" type="VARCHAR" mode="in">
         <default/>
       </parameter>
       <body><![CDATA[/*************************************************************************
@@ -31,15 +31,15 @@
   v_Result NUMBER:= 1;
   v_Message VARCHAR2(2000):='';
   v_exist NUMBER:=0;
-  v_M_Product_Org_ID NUMBER(10);
-  v_warehouse_ID NUMBER(10);
-  v_org_ID NUMBER(10);
+  v_M_Product_Org_ID VARCHAR2(32);
+  v_warehouse_ID VARCHAR2(32);
+  v_org_ID VARCHAR2(32);
   v_count_update NUMBER:= 0;
   v_count_insert NUMBER:= 0;
   TYPE RECORD IS REF CURSOR;
   Cur_Cursor RECORD;
   Cur_Parameter RECORD;
-  v_AD_Client_ID NUMBER;
+  v_AD_Client_ID VARCHAR2(32);
 BEGIN
 
   IF(p_PInstance_ID IS NOT NULL) THEN
@@ -121,7 +121,7 @@
      ELSE
        AD_Sequence_Next('M_Product_Org', Cur_Cursor.AD_CLIENT_ID, v_M_Product_Org_ID) ;
        INSERT INTO M_PRODUCT_ORG (M_PRODUCT_ORG_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, M_PRODUCT_ID, ABC) VALUES
-       (v_M_Product_Org_ID, Cur_Cursor.AD_CLIENT_ID, Cur_Cursor.AD_ORG_ID, 'Y', now(), 100, now(), 100, Cur_Cursor.M_PRODUCT_ID, Cur_Cursor.ISABC);
+       (v_M_Product_Org_ID, Cur_Cursor.AD_CLIENT_ID, Cur_Cursor.AD_ORG_ID, 'Y', now(), '100', now(), '100', Cur_Cursor.M_PRODUCT_ID, Cur_Cursor.ISABC);
        v_count_insert := v_count_insert + 1;
      END IF;