Commit 7585fee6 authored by jshaikh's avatar jshaikh

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@193877 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 355b5543
...@@ -775,7 +775,8 @@ public class SOrderAmdConf extends ActionHandlerEJB implements SOrderAmdConfLoca ...@@ -775,7 +775,8 @@ public class SOrderAmdConf extends ActionHandlerEJB implements SOrderAmdConfLoca
if(lineNoSo == null || lineNoSo.trim().length() == 0 ) if(lineNoSo == null || lineNoSo.trim().length() == 0 )
{ {
lnSql = "SELECT MAX(LINE_NO) AS LS_CNT FROM SORDDET WHERE SALE_ORDER = ? "; //lnSql = "SELECT MAX(LINE_NO) AS LS_CNT FROM SORDDET WHERE SALE_ORDER = ? ";
lnSql = "SELECT TRIM(MAX(CAST(LINE_NO as number))) AS LS_CNT FROM SORDDET WHERE SALE_ORDER = ? ";//Changed by Jaffar S. for getting exact max of line no
pstln= conn.prepareStatement(lnSql); pstln= conn.prepareStatement(lnSql);
pstln.setString(1, saleOrd); pstln.setString(1, saleOrd);
rsln= pstln.executeQuery(); rsln= pstln.executeQuery();
......
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