Commit f9ed17c5 authored by manohar's avatar manohar

loc_group consideration done


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91627 ce508802-f39f-4f6c-b175-0d175dae99d5
parent de76c4c4
......@@ -953,7 +953,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
sqlSB.append(" A.QUANTITY - A.ALLOC_QTY AS QUANTITY, A.SITE_CODE, A.EXP_DATE, A.RETEST_DATE, ");
sqlSB.append(" A.DIMENSION, A.RATE, A.CREA_DATE, ");
sqlSB.append(" CASE WHEN LENGTH(RTRIM(A.LOT_SL)) = 1 THEN '0' || RTRIM(A.LOT_SL) ELSE RTRIM(A.LOT_SL) END ");
sqlSB.append(" FROM STOCK A, INVSTAT B WHERE (A.INV_STAT = B.INV_STAT) AND ( A.ITEM_CODE = ?) ");
sqlSB.append(" FROM STOCK A, INVSTAT B, LOCATION C WHERE (C.LOC_CODE = C.LOC_CODE) AND (C.INV_STAT = B.INV_STAT) AND ( A.ITEM_CODE = ?) ");
sqlSB.append(" AND (A.SITE_CODE = ? ) AND (A.QUANTITY - A.ALLOC_QTY > 0 ) AND ( B.STAT_TYPE <> 'S' ) ");
sqlSB.append(" AND NOT EXISTS (SELECT 1 FROM QC_ORDER C WHERE A.SITE_CODE = C.SITE_CODE ");
sqlSB.append(" AND A.ITEM_CODE = C.ITEM_CODE AND A.LOT_NO = C.LOT_NO AND A.LOC_CODE = C.LOC_CODE ");
......@@ -981,7 +981,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
// 26/03/12 manoharan
if (locGroup != null && locGroup.trim().length() > 0 && "A".equals(locUsageType) )
{
sql = sql + " AND b.loc_group = '" + locGroup + "' ";
sql = sql + " AND C.loc_group = '" + locGroup + "' ";
}
// end 26/03/12 manoharan
......
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