Commit de381658 authored by caluka's avatar caluka

qc transfer time pass quantity deducted according to quantity


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97116 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ff9cfc69
...@@ -158,7 +158,7 @@ QCTransferConfLocal, QCTransferConfRemote ...@@ -158,7 +158,7 @@ QCTransferConfLocal, QCTransferConfRemote
{ {
PreparedStatement pstmt = null, pstmtSql = null; PreparedStatement pstmt = null, pstmtSql = null;
ResultSet rs = null; ResultSet rs = null;
int cnt = 0,updCnt=0; int cnt = 0,updCnt=0,updCnt1=0;
String retString = "", sql = "", errCode = ""; String retString = "", sql = "", errCode = "";
Timestamp sysDate = null, tranDate = null; Timestamp sysDate = null, tranDate = null;
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
...@@ -833,7 +833,22 @@ QCTransferConfLocal, QCTransferConfRemote ...@@ -833,7 +833,22 @@ QCTransferConfLocal, QCTransferConfRemote
updCnt = pstmt.executeUpdate(); updCnt = pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
//Start added by chandrashekar on 13-Jan-2015
sql = " update qc_order set qty_passed = (qty_passed - ? ) where qorder_no = ?" ;
pstmt = conn.prepareStatement(sql);
if(isByProduct)
{
pstmt.setDouble(1, convertedQty);
}
else
{
pstmt.setDouble(1, qty);
}
pstmt.setString(2, qorderNo);
updCnt1 = pstmt.executeUpdate();
pstmt.close();
pstmt = null;
//End added by chandrashekar on 13-Jan-2015
// if( updCnt == 0 ) // if( updCnt == 0 )
// { // {
// errCode = "QCTRFUPDT"; //'Unable to confirm QC Transfer ' + sqlca.sqlerrtext // errCode = "QCTRFUPDT"; //'Unable to confirm QC Transfer ' + sqlca.sqlerrtext
......
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