Commit 4fa9c640 authored by dpawar's avatar dpawar

make hold status 'H' in sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96293 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a81eb951
......@@ -512,7 +512,7 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
rs.close();
pstmt = null;
rs = null;
System.out.println("despatchQty--->>["+despatchQty+"]");
System.out.println("despatchQty--->>["+despatchQty+"]");//280
totquantity = despatchQty + quantity;//0+20=20
......@@ -532,7 +532,7 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
rs = null;
actQty=getQtyFromSordItem(sorderNo, conn);
System.out.println("actQty--->["+actQty+"]");
System.out.println("actQty--->["+actQty+"]");//280
if(totquantity > sdetQty)
{
errCode = "VTDPCCSQ";
......@@ -821,7 +821,7 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
System.out.println("orderDt----->>["+orderDt+"]");
System.out.println("sOrdDate----->>["+sOrdDate+"]");
System.out.println("custCodeDlv----->>["+custCodeDlv+"]");
valueXmlString.append("<Detail2 domID='" + count + "' objContext = '"+currentFormNo+"' selected=\"N\">\r\n");
valueXmlString.append("<Detail2 domID='" + count + "' objContext = '"+currentFormNo+"' selected=\"Y\">\r\n");
valueXmlString.append("<attribute selected=\"Y\" updateFlag=\"E\" status=\"O\" pkNames=\"\"/>\r\n");
valueXmlString.append("<desp_id><![CDATA["+ despId +"]]></desp_id>");
if(orderDt != null){
......@@ -1917,8 +1917,8 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
sql="select count(*) from inv_hold h,inv_hold_det d where h.tran_id = d.tran_id "
+"and d.item_code = ? and d.site_code = ? "
+"and d.loc_code = ? and d.lot_no= ? AND h.CONFIRMED= ? "
+"and d.lot_sl= ? and h.lock_code = ?";
+"and d.loc_code = ? and d.lot_no= ? AND h.confirmed= ? "
+"and d.lot_sl= ? and d.hold_status = ? and h.lock_code = ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, invHoldMap.get("item_code"));
pstmt.setString(2, invHoldMap.get("site_code"));
......@@ -1926,7 +1926,8 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
pstmt.setString(4, invHoldMap.get("lot_no"));
pstmt.setString(5, "Y");
pstmt.setString(6, invHoldMap.get("lot_sl"));
pstmt.setString(7, qcLockValue);
pstmt.setString(7, "H");
pstmt.setString(8, qcLockValue);
rs=pstmt.executeQuery();
if(rs.next()){
count=rs.getInt(1);
......
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