src-db/database/model/functions/AD_GET_DOCTYPE.xml
changeset 1605 8a0fe0193bef
parent 756 ae11e4610537
child 1696 f40691c57009
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="FUNCTION AD_GET_DOCTYPE">
     2   <database name="FUNCTION AD_GET_DOCTYPE">
     3     <function name="AD_GET_DOCTYPE" type="NUMERIC">
     3     <function name="AD_GET_DOCTYPE" type="VARCHAR">
     4       <parameter name="p_clientid" type="NUMERIC" mode="in">
     4       <parameter name="p_clientid" type="VARCHAR" mode="in">
     5         <default/>
     5         <default/>
     6       </parameter>
     6       </parameter>
     7       <parameter name="p_orgid" type="NUMERIC" mode="in">
     7       <parameter name="p_orgid" type="VARCHAR" mode="in">
     8         <default/>
     8         <default/>
     9       </parameter>
     9       </parameter>
    10       <parameter name="p_docbasetype" type="CHAR" mode="in">
    10       <parameter name="p_docbasetype" type="CHAR" mode="in">
    11         <default/>
    11         <default/>
    12       </parameter>
    12       </parameter>
    27 * The Initial Developer of the Original Code is Openbravo SL
    27 * The Initial Developer of the Original Code is Openbravo SL
    28 * All portions are Copyright (C) 2001-2006 Openbravo SL
    28 * All portions are Copyright (C) 2001-2006 Openbravo SL
    29 * All Rights Reserved.
    29 * All Rights Reserved.
    30 * Contributor(s):  ______________________________________.
    30 * Contributor(s):  ______________________________________.
    31 ************************************************************************/
    31 ************************************************************************/
    32   v_DocTypeId NUMBER(10) ;
    32   v_DocTypeId varchar2(32) ;
    33   TYPE RECORD IS REF CURSOR;
    33   TYPE RECORD IS REF CURSOR;
    34     Cur_DocType RECORD;
    34     Cur_DocType RECORD;
    35   BEGIN
    35   BEGIN
    36     FOR Cur_DocType IN
    36     FOR Cur_DocType IN
    37       (SELECT C_DocType_ID
    37       (SELECT C_DocType_ID