Commit e8137ad7 authored by manohar's avatar manohar

bug fixing - item_code taken from workorder_bill instead of the item_code...

bug fixing - item_code taken from workorder_bill instead of the item_code taken outside loop which will be last item from workorder_bill always


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94093 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5d9baf5c
...@@ -514,15 +514,15 @@ public class WOIssueReplacementPrc extends ProcessEJB implements GenerateReceipt ...@@ -514,15 +514,15 @@ public class WOIssueReplacementPrc extends ProcessEJB implements GenerateReceipt
if( reqQty > 0) if( reqQty > 0)
{ {
//bom //bom
sql ="select a.bom_code, b.item_code__ref,a.loc_group,a.lot_no__issue " sql ="select a.bom_code, b.item_code__ref,a.loc_group,a.lot_no__issue, b.item_code " // 07/01/14 manoharan item_code from bill added
+" from workorder a, workorder_bill b where a.work_order = b.work_order " +" from workorder a, workorder_bill b where a.work_order = b.work_order "
+" and a.work_order = ? " +" and a.work_order = ? "
+" and b.exp_lev = ? " +" and b.exp_lev = ? ";
+" and b.item_code = ? "; //+" and b.item_code = ? "; //07/01/14 manoharan commented as item_code to be taken from bill
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,workOrder); pstmt.setString(1,workOrder);
pstmt.setString(2,expLev); pstmt.setString(2,expLev);
pstmt.setString(3,itemCode); //pstmt.setString(3,itemCode); //07/01/14 manoharan commented as item_code to be taken from bill
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
...@@ -530,6 +530,7 @@ public class WOIssueReplacementPrc extends ProcessEJB implements GenerateReceipt ...@@ -530,6 +530,7 @@ public class WOIssueReplacementPrc extends ProcessEJB implements GenerateReceipt
itemCodeRef = rs.getString(2); itemCodeRef = rs.getString(2);
locGroup = rs.getString(3); locGroup = rs.getString(3);
lotNoIssue = rs.getString(4); lotNoIssue = rs.getString(4);
itemCode = rs.getString(5);
} }
rs.close(); rs.close();
rs =null; rs =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