src-db/database/model/functions/MA_WORKREQUIREMENT_PROCESS.xml
changeset 1605 8a0fe0193bef
parent 1273 3f48377a0023
child 2343 7264dbd0f356
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="FUNCTION MA_WORKREQUIREMENT_PROCESS">
     2   <database name="FUNCTION MA_WORKREQUIREMENT_PROCESS">
     3     <function name="MA_WORKREQUIREMENT_PROCESS" type="NULL">
     3     <function name="MA_WORKREQUIREMENT_PROCESS" 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
    25   v_Message VARCHAR2(2000):='';
    25   v_Message VARCHAR2(2000):='';
    26   --  Parameter
    26   --  Parameter
    27   TYPE RECORD IS REF CURSOR;
    27   TYPE RECORD IS REF CURSOR;
    28     Cur_Parameter RECORD;
    28     Cur_Parameter RECORD;
    29     --
    29     --
    30     v_Record_ID NUMBER:=NULL;
    30     v_Record_ID VARCHAR2(32):=NULL;
    31     v_User_ID NUMBER;
    31     v_User_ID VARCHAR2(32);
    32     v_Org_ID NUMBER;
    32     v_Org_ID VARCHAR2(32);
    33     v_Client_ID NUMBER;
    33     v_Client_ID VARCHAR2(32);
    34     v_WrPhase_ID NUMBER;
    34     v_WrPhase_ID VARCHAR2(32);
    35     v_WrPhaseProd_ID NUMBER;
    35     v_WrPhaseProd_ID VARCHAR2(32);
    36     --  Sequences to process
    36     --  Sequences to process
    37     Cur_Sequence RECORD;
    37     Cur_Sequence RECORD;
    38     --
    38     --
    39     v_ProcessPlan_ID NUMBER;
    39     v_ProcessPlan_ID VARCHAR2(32);
    40     v_ExplodePhases CHAR;
    40     v_ExplodePhases CHAR;
    41     v_Quantity NUMBER;
    41     v_Quantity NUMBER;
    42     v_Multiplier NUMBER;
    42     v_Multiplier NUMBER;
    43     v_Processed CHAR;
    43     v_Processed CHAR;
    44     v_LaunchDate DATE;
    44     v_LaunchDate DATE;