Commit d108f9ce authored by cpatil's avatar cpatil

modify at urse for alloc_qty


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98753 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 63f57b2b
......@@ -526,6 +526,40 @@ public class MrpWizPrsSaveBean
}
}
if(( errString == null || errString.trim().length() == 0 ) && sorderList != null && (itemCodeHdr.equalsIgnoreCase(itemCode)))
{
System.out.println("@@@@@@@@@@@ sorderList["+sorderList+"]itemCodeHdr["+itemCodeHdr+"]itemCode["+itemCode+"]allocQty["+allocQty+"]");
//String sorderArray[]=sorderList.split("@");
System.out.println("@@@@@ sorderArray.length["+sorderArray.length+"]");
//for(int i=0;i<sorderArray.length;i++)
//{
//String tempSO="",tempLineNo="";
//tempSO=sorderArray[i];
//String sorderLineArray[]=tempSO.split(",");
//System.out.println("@@@@@ sorderArray.length["+sorderArray.length+"]");
//if( sorderLineArray.length > 1)
//{
// tempSO=sorderLineArray[0];
// tempLineNo=sorderLineArray[1];
//}
System.out.println("@@@@@::: sorder ["+tempSO+"]tempLineNo["+tempLineNo+"] updated next dtlCtr["+dtlCtr+"]....");
// update qty_alloc in sorditem after finish click in ATP @urse on 12/10/15
sql2 = " update sorditem set qty_alloc= qty_alloc + ? where sale_order = ? and ltrim(rtrim(line_no)) = ? ";
System.out.println("sql2 :"+sql2 );
pstmt2 = conn.prepareStatement(sql2);
pstmt2.setDouble(1,allocQty);
pstmt2.setString(2,tempSO);
pstmt2.setString(3,tempLineNo);
int cnt4 = pstmt2.executeUpdate();
pstmt2.close();
pstmt2 = null;
System.out.println("@@@@@ sorditem qty_alloc::["+allocQty+"]::cnt4["+cnt4+"]");
//}
}
/*
if ( errString == null || errString.trim().length() == 0 )
{
......@@ -738,6 +772,9 @@ public class MrpWizPrsSaveBean
*/
}
// for sorder updation
......@@ -762,12 +799,11 @@ public class MrpWizPrsSaveBean
}
System.out.println("@@@@@::: sorder ["+tempSO+"]tempLineNo["+tempLineNo+"] updated next i["+i+"]....");
// update qty_alloc in sorditem after finish click in ATP @urse on 12/10/15
sql2 = " update sorditem set alloc_flag = 'Y' , qty_alloc= qty_alloc+ ? where sale_order = ? and ltrim(rtrim(line_no)) = ? ";
sql2 = " update sorditem set alloc_flag = 'Y' where sale_order = ? and ltrim(rtrim(line_no)) = ? ";
System.out.println("sql2 :"+sql2 );
pstmt2 = conn.prepareStatement(sql2);
pstmt2.setDouble(1,allocQty);
pstmt2.setString(2,tempSO);
pstmt2.setString(3,tempLineNo);
pstmt2.setString(1,tempSO);
pstmt2.setString(2,tempLineNo);
int cnt2 = pstmt2.executeUpdate();
pstmt2.close();
pstmt2 = null;
......
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