Commit 26c7b9b4 authored by cpatil's avatar cpatil

added trim() to line_no


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95831 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2d89903f
...@@ -206,7 +206,7 @@ public class MrpWizPrsSaveBean ...@@ -206,7 +206,7 @@ public class MrpWizPrsSaveBean
String itemCodeHdr=""; String itemCodeHdr="";
remarks = "From mrp process"; remarks = "From mrp process";
sql1=" select item_code from sorddet where sale_order = ? and line_no = ? "; sql1=" select item_code from sorddet where sale_order = ? and trim(line_no) = ? "; //added trim() for line no on 07/08/14 by cpatil
pstmt1=conn.prepareStatement(sql1); pstmt1=conn.prepareStatement(sql1);
pstmt1.setString(1,saleOrder); pstmt1.setString(1,saleOrder);
pstmt1.setString(2,lineNo); pstmt1.setString(2,lineNo);
...@@ -234,6 +234,8 @@ public class MrpWizPrsSaveBean ...@@ -234,6 +234,8 @@ public class MrpWizPrsSaveBean
allocQty = allocQtyStr==null?0:Double.parseDouble(allocQtyStr); allocQty = allocQtyStr==null?0:Double.parseDouble(allocQtyStr);
} }
System.out.println("itemCodeHdr["+itemCodeHdr+"]==itemCode["+itemCode+"]");
if(itemCodeHdr.equalsIgnoreCase(itemCode)) if(itemCodeHdr.equalsIgnoreCase(itemCode))
{ {
......
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