src-db/database/model/functions/MA_WORKEFFORT_VALIDATE.xml
changeset 7675 1cd1fa208bcc
parent 6775 24b5a4a1accd
child 9072 79e55dfc8af0
equal deleted inserted replaced
7674:2d363b75144f 7675:1cd1fa208bcc
   261         FROM M_PRODUCTION p, M_PRODUCTIONLINE pl, M_PRODUCTIONPLAN pp, M_PRODUCT pr
   261         FROM M_PRODUCTION p, M_PRODUCTIONLINE pl, M_PRODUCTIONPLAN pp, M_PRODUCT pr
   262         WHERE p.M_Production_ID=pp.M_Production_ID
   262         WHERE p.M_Production_ID=pp.M_Production_ID
   263           AND pp.M_ProductionPlan_ID=pl.M_ProductionPlan_ID
   263           AND pp.M_ProductionPlan_ID=pl.M_ProductionPlan_ID
   264           AND pp.M_Production_ID=v_Record_ID
   264           AND pp.M_Production_ID=v_Record_ID
   265           AND pl.M_PRODUCT_ID=pr.M_PRODUCT_ID
   265           AND pl.M_PRODUCT_ID=pr.M_PRODUCT_ID
       
   266           AND pr.ISSTOCKED='Y'
   266         ORDER BY pp.Line, pl.Line)
   267         ORDER BY pp.Line, pl.Line)
   267       LOOP
   268       LOOP
   268         -- M_ProductionLine_ID, AD_Client_ID, AD_Org_ID, MovementDate, M_Product_ID, MovementQty, M_Locator_ID
   269         -- M_ProductionLine_ID, AD_Client_ID, AD_Org_ID, MovementDate, M_Product_ID, MovementQty, M_Locator_ID
   269         -- DBMS_OUTPUT.PUT_LINE('ProductionLine=' || CUR_PL_Post.M_ProductionLine_ID);
   270         -- DBMS_OUTPUT.PUT_LINE('ProductionLine=' || CUR_PL_Post.M_ProductionLine_ID);
   270         -- DBMS_OUTPUT.PUT_LINE('  Qty=' || CUR_PL_Post.MovementQty || ', OnHand=' || M_BOM_Qty_OnHand(CUR_PL_Post.M_Product_ID, NULL, CUR_PL_Post.M_Locator_ID));
   271         -- DBMS_OUTPUT.PUT_LINE('  Qty=' || CUR_PL_Post.MovementQty || ', OnHand=' || M_BOM_Qty_OnHand(CUR_PL_Post.M_Product_ID, NULL, CUR_PL_Post.M_Locator_ID));