src-db/database/model/functions/C_ELEMENTVALUE_COPY.xml
changeset 1605 8a0fe0193bef
parent 785 8dba91261590
child 3645 a509cd280aa7
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="FUNCTION C_ELEMENTVALUE_COPY">
     2   <database name="FUNCTION C_ELEMENTVALUE_COPY">
     3     <function name="C_ELEMENTVALUE_COPY" type="NULL">
     3     <function name="C_ELEMENTVALUE_COPY" type="NULL">
     4       <parameter name="p_source_element_id" type="NUMERIC" mode="in">
     4       <parameter name="p_source_element_id" type="VARCHAR" mode="in">
     5         <default/>
     5         <default/>
     6       </parameter>
     6       </parameter>
     7       <parameter name="p_target_element_id" type="NUMERIC" mode="in">
     7       <parameter name="p_target_element_id" type="VARCHAR" mode="in">
     8         <default/>
     8         <default/>
     9       </parameter>
     9       </parameter>
    10       <body><![CDATA[/*************************************************************************
    10       <body><![CDATA[/*************************************************************************
    11   * The contents of this file are subject to the Compiere Public
    11   * The contents of this file are subject to the Compiere Public
    12   * License 1.1 ("License"); You may not use this file except in
    12   * License 1.1 ("License"); You may not use this file except in
    30   *  Copies CoA
    30   *  Copies CoA
    31   * All element values of p_Source_Element_ID to p_Target_Element_ID
    31   * All element values of p_Source_Element_ID to p_Target_Element_ID
    32   */
    32   */
    33   TYPE RECORD IS REF CURSOR;
    33   TYPE RECORD IS REF CURSOR;
    34     Cur_ElementValue RECORD;
    34     Cur_ElementValue RECORD;
    35     v_xAD_Client_ID NUMBER;
    35     v_xAD_Client_ID VARCHAR2(32);
    36     v_xAD_Org_ID NUMBER;
    36     v_xAD_Org_ID VARCHAR2(32);
    37     v_xUpdated DATE;
    37     v_xUpdated DATE;
    38     v_xUpdatedBy NUMBER;
    38     v_xUpdatedBy NUMBER;
    39     v_NextNo NUMBER;
    39     v_NextNo VARCHAR2(32);
    40   BEGIN
    40   BEGIN
    41     --  Get target base info
    41     --  Get target base info
    42     SELECT AD_Client_ID,
    42     SELECT AD_Client_ID,
    43       AD_Org_ID,
    43       AD_Org_ID,
    44       Updated,
    44       Updated,