Some Changes are Done

parent 5ea1f24c
...@@ -20,12 +20,9 @@ import ibase.webitm.utility.ITMException; ...@@ -20,12 +20,9 @@ import ibase.webitm.utility.ITMException;
public class QuatationAmedmentIC extends ValidatorEJB{ public class QuatationAmedmentIC extends ValidatorEJB{
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{ {
BaseLogger.log("3", getUserInfo(), null,"Inside itemchanged method 111111"); BaseLogger.log("3", getUserInfo(), null,"Inside itemchanged method khushal 111111");
ResultSet rs=null; ResultSet rs=null;
PreparedStatement pstmt=null; PreparedStatement pstmt=null;
String sql="",loginSite="",hospCode="",hospName= "",custCode="",custName="",currCode="", siteCode="", QuotNo="", ls_line_no=""; String sql="",loginSite="",hospCode="",hospName= "",custCode="",custName="",currCode="", siteCode="", QuotNo="", ls_line_no="";
...@@ -128,11 +125,10 @@ public class QuatationAmedmentIC extends ValidatorEJB{ ...@@ -128,11 +125,10 @@ public class QuatationAmedmentIC extends ValidatorEJB{
{ {
ls_line_no1 = 0; ls_line_no1 = 0;
} }
String quotNo1 = whenNull(getItemString(dom1, 1, "quot_no")); String quotNo1 = whenNull(getItemString(dom1, 1, "quot_no"));
sql=" select quot_no , item_code , descr , unit, " + sql=" select quot_no , item_code , descr , unit, " +
" quantity , rate , rate_new , old_rate " + " quantity , rate " +
" from sales_quotdet " + " from sales_quotdet " +
" where quot_no = ? and line_no = ?"; " where quot_no = ? and line_no = ?";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
...@@ -147,18 +143,14 @@ public class QuatationAmedmentIC extends ValidatorEJB{ ...@@ -147,18 +143,14 @@ public class QuatationAmedmentIC extends ValidatorEJB{
unit = rs.getString("unit"); unit = rs.getString("unit");
quantity1 = rs.getDouble("quantity"); quantity1 = rs.getDouble("quantity");
rate = rs.getDouble("rate"); rate = rs.getDouble("rate");
newRate = rs.getDouble("rate_new");
oldRate = rs.getDouble("old_rate");
} }
setItem(dom, 1, "quot_no", quotNo); setItem(dom, 1, "quot_no", quotNo);
setItem(dom, 1, "item_code", itemCode); setItem(dom, 1, "item_code", itemCode);
setItem(dom, 1, "item_name", itemName); setItem(dom, 1, "item_name", itemName);
setItem(dom, 1, "unit", unit); setItem(dom, 1, "unit", unit);
setItem(dom, 1, "quantity", String.valueOf(quantity1)); setItem(dom, 1, "quantity__o", String.valueOf(quantity1));
setItem(dom, 1, "rate", rate); setItem(dom, 1, "rate_new__o", rate);
setItem(dom, 1, "rate_new", newRate);
setItem(dom, 1, "rate_new__o", oldRate);
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
...@@ -167,7 +159,7 @@ public class QuatationAmedmentIC extends ValidatorEJB{ ...@@ -167,7 +159,7 @@ public class QuatationAmedmentIC extends ValidatorEJB{
} }
} }
break; break;
} }
} }
} }
......
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