src-db/database/model/functions/MRP_PRODUCTION_RUN.xml
changeset 1605 8a0fe0193bef
parent 756 ae11e4610537
child 6701 690d2af86089
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="FUNCTION MRP_PRODUCTION_RUN">
     2   <database name="FUNCTION MRP_PRODUCTION_RUN">
     3     <function name="MRP_PRODUCTION_RUN" type="NULL">
     3     <function name="MRP_PRODUCTION_RUN" 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
    22 ************************************************************************/
    22 ************************************************************************/
    23   -- Logistice
    23   -- Logistice
    24   v_ResultStr VARCHAR2(4000):='';
    24   v_ResultStr VARCHAR2(4000):='';
    25   v_Message VARCHAR2(4000):='';
    25   v_Message VARCHAR2(4000):='';
    26   v_Result NUMBER:=1; -- 0=failure
    26   v_Result NUMBER:=1; -- 0=failure
    27   v_Record_ID NUMBER;
    27   v_Record_ID VARCHAR2(32);
    28   v_User_ID NUMBER:=0;
    28   v_User_ID VARCHAR2(32):='0';
    29   v_Org_ID NUMBER;
    29   v_Org_ID VARCHAR2(32);
    30   v_Client_ID NUMBER;
    30   v_Client_ID VARCHAR2(32);
    31   v_Planner_ID NUMBER;
    31   v_Planner_ID VARCHAR2(32);
    32   v_Product_ID NUMBER;
    32   v_Product_ID VARCHAR2(32);
    33   v_Product_Category_ID NUMBER;
    33   v_Product_Category_ID VARCHAR2(32);
    34   v_BPartner_ID NUMBER;
    34   v_BPartner_ID VARCHAR2(32);
    35   v_BP_Group_ID NUMBER;
    35   v_BP_Group_ID VARCHAR2(32);
    36   v_TimeHorizon NUMBER;
    36   v_TimeHorizon NUMBER;
    37   v_PlanningDate DATE;
    37   v_PlanningDate DATE;
    38   v_SecurityMargin NUMBER;
    38   v_SecurityMargin NUMBER;
    39 
    39 
    40 
    40