Commit eac0bc18 authored by ppatro's avatar ppatro

Changed By 20/10/14 Pragyan To use ronum as wizrd getting too slow


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96642 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cd9b97b2
......@@ -2041,7 +2041,7 @@ public class StockTransferGrlIC extends ValidatorEJB implements StockTransferGrl
" AND A.LOC_TYPE = ? AND S.SITE_CODE = ? AND (S.FACILITY_CODE = A.FACILITY_CODE or nvl(s.facility_code ,'N') = 'N') " +
" AND A.INV_STAT IN ("+invStstPars+") AND (CASE WHEN B.STAT_TYPE IS NULL THEN ' ' ELSE B.STAT_TYPE END) <> 'S' " +
" and nvl((SELECT sum(quantity) FROM STOCK WHERE SITE_CODE = ? AND INV_STAT IN ("+invStstPars+") and stock.loc_code = a.loc_code),0) = 0 " +
//Changed By 20/10/14 Pragyan To use ronum as wizrd getting too slow
//Changed By 20/10/14 Pragyan To use ronum as wizrd getting too slow
" AND ROWNUM < 5 "+
" ORDER BY ABS(A.LOC_ZONE - ? ),A.LOC_CODE ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment