Commit 924ca0f4 authored by wansari's avatar wansari

W15GSUN003 updated source for in alloc loc Code isError declaration.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99378 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6b3140af
...@@ -801,7 +801,7 @@ public class ScheduleAWMSInOutTasks implements Schedule ...@@ -801,7 +801,7 @@ public class ScheduleAWMSInOutTasks implements Schedule
+" FROM PALLET_REQ_DET P,STOCK S,PALLET_REQ_HDR H WHERE P.TRAN_ID = ? AND P.LINE_NO = ?" +" FROM PALLET_REQ_DET P,STOCK S,PALLET_REQ_HDR H WHERE P.TRAN_ID = ? AND P.LINE_NO = ?"
+" AND P.TRAN_ID = H.TRAN_ID AND S.INV_STAT = 'AWMS'" +" AND P.TRAN_ID = H.TRAN_ID AND S.INV_STAT = 'AWMS'"
+" AND P.ITEM_CODE = S.ITEM_CODE AND H.SITE_CODE = S.SITE_CODE AND P.PALLET_NO = S.LOC_CODE AND P.LOT_NO = S.LOT_NO" +" AND P.ITEM_CODE = S.ITEM_CODE AND H.SITE_CODE = S.SITE_CODE AND P.PALLET_NO = S.LOC_CODE AND P.LOT_NO = S.LOT_NO"
+" AND P.LOT_SL = S.LOT_SL"; +" AND P.LOT_SL = S.LOT_SL AND S.QUANTITY > 0";
} }
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -3908,6 +3908,7 @@ public class ScheduleAWMSInOutTasks implements Schedule ...@@ -3908,6 +3908,7 @@ public class ScheduleAWMSInOutTasks implements Schedule
DistStkUpdLocal distStkUpd = null; DistStkUpdLocal distStkUpd = null;
int count = 0; int count = 0;
int cntList = 0; int cntList = 0;
boolean isError = false;
try try
{ {
System.out.println("Inside allocStockLocCodeTo"); System.out.println("Inside allocStockLocCodeTo");
...@@ -3916,6 +3917,8 @@ public class ScheduleAWMSInOutTasks implements Schedule ...@@ -3916,6 +3917,8 @@ public class ScheduleAWMSInOutTasks implements Schedule
Iterator itr = stkList.iterator(); Iterator itr = stkList.iterator();
System.out.println("Array List size="+stkList.size()); System.out.println("Array List size="+stkList.size());
if(stkList.size() > 0)
{
while(itr.hasNext()) while(itr.hasNext())
{ {
HashMap detail = new HashMap(); HashMap detail = new HashMap();
...@@ -3927,7 +3930,8 @@ public class ScheduleAWMSInOutTasks implements Schedule ...@@ -3927,7 +3930,8 @@ public class ScheduleAWMSInOutTasks implements Schedule
System.out.println("distStkUpd.UpdAllocTrace(HashMap, Connection) : Sucessuful!="+count); System.out.println("distStkUpd.UpdAllocTrace(HashMap, Connection) : Sucessuful!="+count);
} }
count++; count++;
} }
}
/*if("D-SO".equalsIgnoreCase(refSer) && countDso == 0) /*if("D-SO".equalsIgnoreCase(refSer) && countDso == 0)
{ {
......
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