src-db/database/model/functions/M_INOUT_POST.xml
changeset 27386 6db6e5448fd2
parent 27385 1d9e795478ba
child 27706 c10451d08a85
child 28196 69f3a1a1c22d
--- a/src-db/database/model/functions/M_INOUT_POST.xml	Fri Aug 21 13:33:27 2015 +0200
+++ b/src-db/database/model/functions/M_INOUT_POST.xml	Fri Aug 21 13:46:55 2015 +0200
@@ -799,7 +799,6 @@
               END IF;
             END IF;
             IF(Cur_InOutLine.M_Product_ID IS NOT NULL AND v_IsStocked=1) THEN
-              SELECT AD_Org_ID INTO v_Locator_Org_ID FROM M_Locator L WHERE M_Locator_ID = Cur_InOutLine.M_Locator_ID;
               M_Check_Stock(Cur_InOutLine.M_Product_ID, v_AD_Client_ID, Cur_InOutLine.AD_Org_ID, v_Result, v_Message) ;
               IF v_Result=0 THEN
                 SELECT name INTO v_ProductName FROM M_Product WHERE M_Product_id = Cur_InOutLine.M_Product_ID;