Commit a099e968 authored by ssarkar's avatar ssarkar

update by sumit 12/02/13 suggest active loc bug solved


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92674 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3b8c7ba8
......@@ -729,7 +729,7 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
}
quantity = rs.getDouble(8);
/*if(!unit.equalsIgnoreCase(mbaseUnit))
if(!unit.equalsIgnoreCase(mbaseUnit))
{
if(convQtyStduom != 0)
{
......@@ -760,7 +760,7 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
{
quantity = 0;
}
}*/
}
//Changed By Pragyan 17/12/12 to get the standard UOM and order UOM.end
System.out.println("pendingQty =["+pendingQty+"]");
System.out.println("partQty =["+partQty+"]");
......@@ -21501,11 +21501,12 @@ private String getPickLocForSameItemLotNo(String invStat, String pickType, Strin
}
rs.close(); rs = null;
pstmt.close(); pstmt = null;
System.out.println(" is SUMIT avail ["+isLocAvail+"]");
//Changed by sumit on 08/02/13 checking zero stock stock start.
if( !isLocAvail)
/*if( !isLocAvail)
{
/*sql = "SELECT LOC_CODE FROM STOCK WHERE ITEM_CODE = ? AND INV_STAT = ? AND LOT_NO = ? AND SITE_CODE = ? AND QUANTITY = 0 ";
pstmt= conn.prepareStatement(sql);*/
sql = "SELECT LOC_CODE FROM STOCK WHERE ITEM_CODE = ? AND INV_STAT = ? AND LOT_NO = ? AND SITE_CODE = ? AND QUANTITY = 0 ";
pstmt= conn.prepareStatement(sql);
sql2 = "SELECT SUM(QUANTITY) FROM STOCK WHERE SITE_CODE = ? " +
" AND LOC_CODE = ? ";
......@@ -21525,12 +21526,13 @@ private String getPickLocForSameItemLotNo(String invStat, String pickType, Strin
locCodeTo = suggLocCode;
temp.put("loc_code__to", suggLocCode);
}
System.out.println(" is 00000 avail ["+isLocAvail+"]");
}*/
}
if( !isLocAvail )
{
sql = "SELECT PD.LOC_CODE FROM PICK_ORD_DET PD, PICK_ORD_HDR PH WHERE " +
/*sql = "SELECT PD.LOC_CODE FROM PICK_ORD_DET PD, PICK_ORD_HDR PH WHERE " +
" PH.PICK_ORDER = PD.PICK_ORDER AND PH.PICK_TYPE = ? " +
" AND PD.ITEM_CODE = ? AND PD.LOT_NO = ?";
pstmt1 = conn.prepareStatement(sql);
......@@ -21545,7 +21547,7 @@ private String getPickLocForSameItemLotNo(String invStat, String pickType, Strin
temp.put("loc_code__to", locCodeTo);
}
else
{
{*/
//loop for already suggested location for same item and lot no.
if(pickSaleOrderDetail.size() > 0)
{
......@@ -21579,7 +21581,7 @@ private String getPickLocForSameItemLotNo(String invStat, String pickType, Strin
{
temp.put("loc_code__to", suggLocCode);
}
}
/*}
if(pstmt1 != null)
{
pstmt1.close();
......@@ -21589,7 +21591,7 @@ private String getPickLocForSameItemLotNo(String invStat, String pickType, Strin
{
rs1.close();
rs1 = null;
}
}*/
}
ArrayList tempList = new ArrayList();
tempList.add(temp);
......
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