Commit 21f1406f authored by prane's avatar prane

porder rate from pricelist not set on qty itmchng

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@175298 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 944ddde5
......@@ -10163,13 +10163,16 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
Isreasonrequired(dom, currentFormNo, indNo, lineNo, conn);
priceList = checkNull(genericUtility.getColumnValue(
"price_list", dom));
"price_list", dom1));
ordDate = checkNull(genericUtility.getColumnValue(
"ord_date", dom));
"ord_date", dom1));
rate = checkNull(genericUtility.getColumnValue("rate", dom));
rate = rate =="" ? "0" : rate ;
System.out.println("rate is....["+rate+"]");
System.out.println("PriceList is...["+priceList+"]ordDate["+ordDate+"]qtyLc["+qtyLc+"]");
if (rate == null || Double.parseDouble(rate) <= 0) {
System.out.println("inside rate is null or leass than eq 0");
if (priceList != null && priceList.trim().length() > 0) {
Ratelc = distComm.pickRate(priceList, ordDate,
itemCode, "", "L", qtyLc,
......@@ -10182,7 +10185,8 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
sql = " select count(*) as cnt from pricelist where price_list = ? and item_code = ? and (list_type = 'F' or list_type = 'B')";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, itemCode);
pStmt.setString(1, priceList);
pStmt.setString(2, itemCode);
rs = pStmt.executeQuery();
if (rs.next()) {
cnt = rs.getInt("cnt");
......
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