Commit 82fa5b35 authored by ngadkari's avatar ngadkari

changes for calculation of ord_value

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195758 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d9c5eeef
...@@ -14488,7 +14488,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -14488,7 +14488,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
if ("F".equalsIgnoreCase(lsNature) || "B".equalsIgnoreCase(lsNature) || "S".equalsIgnoreCase(lsNature)) { if ("F".equalsIgnoreCase(lsNature) || "B".equalsIgnoreCase(lsNature) || "S".equalsIgnoreCase(lsNature)) {
lcRate = 0; lcRate = 0;
} else { } else {
lsUnit = checkNull(genericUtility.getColumnValue("unit", dom1)); lsUnit = checkNull(genericUtility.getColumnValue("unit", dom));
lsListType = distCommon.getPriceListType(lsPriceList, conn); lsListType = distCommon.getPriceListType(lsPriceList, conn);
sql = "select count(1) as llPlcount from pricelist where price_list=?" sql = "select count(1) as llPlcount from pricelist where price_list=?"
...@@ -14526,14 +14526,14 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -14526,14 +14526,14 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
pstmt.setDouble(8, mQty); pstmt.setDouble(8, mQty);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) { if (rs.next()) {
lsRefNo = rs.getString("ref_no"); lsRefNo = rs.getString(1);
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
lcRate = distCommon.pickRateRefnoWise(lsPriceList, ldtDateStr, lsItemCodeOrd, lsRefNo, "L", mQty, lcRate = distCommon.pickRateRefnoWise(lsPriceList, ldtDateStr, lsItemCodeOrd, lsRefNo, lsListType, mQty,
conn); conn);
} }
if (lcRate <= 0) { if (lcRate <= 0) {
......
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