Commit bb4eadf3 authored by cpatil's avatar cpatil

// ",qty_transfered= (CASE WHEN qty_transfered IS NULL THEN 0 ELSE...

//	  ",qty_transfered= (CASE WHEN qty_transfered IS NULL THEN 0 ELSE qty_transfered END + ? ) " +    // modify by cpatil on 09/04/14


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100065 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d35f67e6
...@@ -1029,14 +1029,15 @@ QCTransferConfLocal, QCTransferConfRemote ...@@ -1029,14 +1029,15 @@ QCTransferConfLocal, QCTransferConfRemote
System.out.println("QcTransferQty======"+QcTransferQty); System.out.println("QcTransferQty======"+QcTransferQty);
sql = " Update qc_order set quantity = (quantity - ? ) ," + sql = " Update qc_order set quantity = (quantity - ? ) ," +
" net_weight = ( net_weight - ? ) , no_art = ( no_art - ? ) ,qty_transfered= (CASE WHEN qty_transfered IS NULL THEN 0 ELSE qty_transfered END + ? )" + // modify by cpatil on 09/04/14 " net_weight = ( net_weight - ? ) , no_art = ( no_art - ? ) " +
// " ,qty_transfered= (CASE WHEN qty_transfered IS NULL THEN 0 ELSE qty_transfered END + ? )" + // modify by cpatil on 09/04/14
" where qorder_no = ? "; " where qorder_no = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, qty); pstmt.setDouble(1, qty);
pstmt.setDouble(2, convertedNetWeight); pstmt.setDouble(2, convertedNetWeight);
pstmt.setDouble(3, convertedNoArt); pstmt.setDouble(3, convertedNoArt);
pstmt.setDouble(4, qty );//added by priyanka // pstmt.setDouble(4, qty );//added by priyanka
pstmt.setString(5, qorderNo); pstmt.setString(4, qorderNo);
updCnt = pstmt.executeUpdate(); updCnt = pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
...@@ -1094,7 +1095,7 @@ QCTransferConfLocal, QCTransferConfRemote ...@@ -1094,7 +1095,7 @@ QCTransferConfLocal, QCTransferConfRemote
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
//Start added by chandrashekar on 13-Jan-2015 //Start added by chandrashekar on 13-Jan-2015
/*// comment by cpatil as per manohar sir ... issue in sun on 29/01/16
sql = " update qc_order set qty_passed = (qty_passed - ? ) where qorder_no = ?" ; sql = " update qc_order set qty_passed = (qty_passed - ? ) where qorder_no = ?" ;
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
if(isByProduct) if(isByProduct)
...@@ -1116,7 +1117,7 @@ QCTransferConfLocal, QCTransferConfRemote ...@@ -1116,7 +1117,7 @@ QCTransferConfLocal, QCTransferConfRemote
updCnt1 = pstmt.executeUpdate(); updCnt1 = pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
*/
//End added by chandrashekar on 13-Jan-2015 //End added by chandrashekar on 13-Jan-2015
//Start added by cpatil on 07/10/15 //Start added by cpatil on 07/10/15
......
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