src-db/database/model/functions/CHANGEPROJECTSTATUSTOORDER.xml
changeset 1605 8a0fe0193bef
parent 1272 0a07b59e3924
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="FUNCTION CHANGEPROJECTSTATUSTOORDER">
     2   <database name="FUNCTION CHANGEPROJECTSTATUSTOORDER">
     3     <function name="CHANGEPROJECTSTATUSTOORDER" type="NULL">
     3     <function name="CHANGEPROJECTSTATUSTOORDER" type="NULL">
     4       <parameter name="p_pinstance_id" type="NUMERIC" mode="in">
     4       <parameter name="p_pinstance_id" type="VARCHAR" mode="in">
     5         <default/>
     5         <default/>
     6       </parameter>
     6       </parameter>
     7       <body><![CDATA[/*************************************************************************
     7       <body><![CDATA[/*************************************************************************
     8 * The contents of this file are subject to the Openbravo  Public  License
     8 * The contents of this file are subject to the Openbravo  Public  License
     9 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
     9 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
    21 * Contributor(s):  ______________________________________.
    21 * Contributor(s):  ______________________________________.
    22 ************************************************************************/
    22 ************************************************************************/
    23   v_ResultStr VARCHAR2(2000):='';
    23   v_ResultStr VARCHAR2(2000):='';
    24   v_Message VARCHAR2(2000):='';
    24   v_Message VARCHAR2(2000):='';
    25   v_Result NUMBER:=1; -- 0=failure
    25   v_Result NUMBER:=1; -- 0=failure
    26   v_Record_ID NUMBER;
    26   v_Record_ID VARCHAR2(32);
    27   v_AD_User_ID NUMBER;
    27   v_AD_User_ID VARCHAR2(32);
    28   v_AD_Client_ID NUMBER;
    28   v_AD_Client_ID VARCHAR2(32);
    29   v_AD_Org_ID NUMBER;
    29   v_AD_Org_ID VARCHAR2(32);
    30   TYPE RECORD IS REF CURSOR;
    30   TYPE RECORD IS REF CURSOR;
    31     Cur_Parameter RECORD;
    31     Cur_Parameter RECORD;
    32     v_ProjectStatus CHAR(2) ;
    32     v_ProjectStatus CHAR(2) ;
    33     v_projectcategory   CHAR (2);
    33     v_projectcategory   CHAR (2);
    34     v_temppricelist     CHAR (1);
    34     v_temppricelist     CHAR (1);
    35     v_Created NUMBER:=0;
    35     v_Created NUMBER:=0;
    36     v_PriceListVersion NUMBER;
    36     v_PriceListVersion NUMBER;
    37     v_PriceList NUMBER;
    37     v_PriceList NUMBER;
    38     v_PriceListVersionPO NUMBER;
    38     v_PriceListVersionPO NUMBER;
    39     v_PriceListPO NUMBER;
    39     v_PriceListPO NUMBER;
    40     v_C_Currency_ID NUMBER;
    40     v_C_Currency_ID VARCHAR2(32);
    41     v_TotalPhases NUMBER;
    41     v_TotalPhases NUMBER;
    42     v_TotalLines NUMBER;
    42     v_TotalLines NUMBER;
    43     v_BPName VARCHAR2(2000):='';
    43     v_BPName VARCHAR2(2000):='';
    44     v_SupplierName VARCHAR2(2000):='';
    44     v_SupplierName VARCHAR2(2000):='';
    45     FINISH_PROCESS BOOLEAN:=false;
    45     FINISH_PROCESS BOOLEAN:=false;