Commit daac0ae2 authored by ppatro's avatar ppatro

multiple pallets picking same pick order


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93708 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a4298afd
......@@ -210,8 +210,9 @@ public class PickIssPos extends ValidatorEJB implements PickIssPosLocal, PickIss
System.out.println("---row updated sucessfully of master pick---->"+updCnt);
}
//Changed By pragyan 02-oct-13 to update pallet no for respective transaction .start
//added by kunal mandhre on 09/08/12 as per S Manoharan Sir instruction
sql = "UPDATE PALLET_NO SET STATUS = 'U' WHERE PALLET_NO IN(SELECT PALLET_NO FROM PICK_ISS_HDR WHERE PICK_ORDER = ? ) ";
/*sql = "UPDATE PALLET_NO SET STATUS = 'U' WHERE PALLET_NO IN(SELECT PALLET_NO FROM PICK_ISS_HDR WHERE PICK_ORDER = ? ) ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, pickOrder);
updCnt = pstmt.executeUpdate();
......@@ -219,7 +220,18 @@ public class PickIssPos extends ValidatorEJB implements PickIssPosLocal, PickIss
if(updCnt > 0)
{
System.out.println("---row updated sucessfully in pallet no ---->"+updCnt);
}*/
sql = "UPDATE PALLET_NO SET STATUS = 'U' WHERE PALLET_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, palletNo);
updCnt = pstmt.executeUpdate();
pstmt.close(); pstmt = null;
if(updCnt > 0)
{
System.out.println("---row updated sucessfully in pallet no changed---->"+updCnt);
}
//Changed By pragyan 02-oct-13 to update pallet no for respective transaction .end
//Changed by Rohan on 25-02-13 for updating pallet no against master pack in carton master.start
sql = " UPDATE CARTON_MASTER SET PALLET_NO = ? WHERE CARTON_NO IN(SELECT MASTER_CARTON FROM CARTON_MASTER WHERE PICK_ORDER = ? "
......@@ -498,8 +510,9 @@ public class PickIssPos extends ValidatorEJB implements PickIssPosLocal, PickIss
//if(pickType.equalsIgnoreCase("C")|| pickType.equalsIgnoreCase("M"))
//{
//Changed By pragyan 02-oct-13 to update pallet no for respective transaction .start
//added by kunal mandhre on 09/08/12 as per S Manoharan Sir instruction
sql = "UPDATE PALLET_NO SET STATUS = 'U' WHERE PALLET_NO IN(SELECT PALLET_NO FROM PICK_ISS_HDR WHERE PICK_ORDER = ? ) ";
/*sql = "UPDATE PALLET_NO SET STATUS = 'U' WHERE PALLET_NO IN(SELECT PALLET_NO FROM PICK_ISS_HDR WHERE PICK_ORDER = ? ) ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, pickOrder);
updCnt = pstmt.executeUpdate();
......@@ -507,7 +520,17 @@ public class PickIssPos extends ValidatorEJB implements PickIssPosLocal, PickIss
if(updCnt > 0)
{
System.out.println("---row updated sucessfully in pallet no ---->"+updCnt);
}*/
sql = "UPDATE PALLET_NO SET STATUS = 'U' WHERE PALLET_NO = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, palletNo);
updCnt = pstmt.executeUpdate();
pstmt.close(); pstmt = null;
if(updCnt > 0)
{
System.out.println("---row updated sucessfully in pallet no changed---->"+updCnt);
}
//Changed By pragyan 02-oct-13 to update pallet no for respective transaction .end
System.out.println("Calling Confirm method..................");
......
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