Commit 00375c8f authored by mnair's avatar mnair

This has to be checked and changed the line_no should be of 3 characters, in...

This has to be checked and changed the line_no should be of 3 characters, in this there are 2 leading spaces 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@181610 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5b67c293
......@@ -747,6 +747,8 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
poLineNo = poLineNo + 1;
//System.out.println("poLineNo---2---"+poLineNo);
pordMaxLineNo = pordMaxLineNo.valueOf(poLineNo);
pordMaxLineNo = " " + pordMaxLineNo;
pordMaxLineNo = pordMaxLineNo.substring(pordMaxLineNo.length() - 3, pordMaxLineNo.length());
//System.out.println("pordMaxLineNo---*---"+pordMaxLineNo);
System.out.println("after:"+poLineNo+">["+pordMaxLineNo+"]");
sql="Insert into porddet(PURC_ORDER,LINE_NO,SITE_CODE,ITEM_CODE,QUANTITY,UNIT,"+
......@@ -758,7 +760,7 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, purcOrder);
//pstmt.setInt(2, lineNoSo);
pstmt.setString(2, " "+pordMaxLineNo);
pstmt.setString(2, pordMaxLineNo);
pstmt.setString(3, siteCode);
pstmt.setString(4,pItemCode );
pstmt.setDouble(5, qtyOrd);
......
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