Replace QuatationAmedmentIC.java

parent 7ec31644
......@@ -28,13 +28,13 @@ public class QuatationAmedmentIC extends ValidatorEJB{
String sql="",loginSite="",hospCode="",hospName= "",custCode="",custName="",currCode="", siteCode="", QuotNo="", ls_line_no="";
long ls_line_no1=0l;
double exchRate= 1.0;
Timestamp quoDate=null;
Timestamp quoDate=null , validUpto= null , deliveryDate= null;
double lineNo1=0.0 , quantity=0.0 , rate=0.0 , quantityOld=0.0;
int amendmentCount=0;
String ll_line_no="", quotNo="";
String itemCode = "";
String itemName = "";
String unit ="";
String unit ="" , currCode1="" , Costing ="" , pakSize ="" , termsCondition="" ;
double quantity1 = 0.0;
double rate1 = 0.0;
double newRate =0.0;
......@@ -128,10 +128,7 @@ public class QuatationAmedmentIC extends ValidatorEJB{
}
String quotNo1 = whenNull(getItemString(dom1, 1, "quot_no"));
sql=" select quot_no , item_code , descr , unit, " +
" quantity , rate " +
" from sales_quotdet " +
" where quot_no = ? and line_no = ?";
sql= "select quot_no , item_code , descr , unit, quantity , rate , curr_code , costing , pkg_size , valid_upto , delivery_date , terms_condition from sales_quotdet where quot_no = ? and line_no = ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, quotNo1);
pstmt.setLong(2, ls_line_no1);
......@@ -144,14 +141,27 @@ public class QuatationAmedmentIC extends ValidatorEJB{
unit = rs.getString("unit");
quantity1 = rs.getDouble("quantity");
rate = rs.getDouble("rate");
currCode1=rs.getString("curr_code");
Costing = rs.getString("costing");
pakSize = rs.getString("pkg_size");
validUpto=rs.getTimestamp("valid_upto");
deliveryDate=rs.getTimestamp("delivery_date");
termsCondition=rs.getString("terms_condition");
}
setItem(dom, 1, "quot_no", quotNo);
setItem(dom, 1, "item_code", itemCode);
setItem(dom, 1, "item_name", itemName);
setItem(dom, 1, "unit", unit);
setItem(dom, 1, "quantity__o", String.valueOf(quantity1));
setItem(dom, 1, "rate_new__o", rate);
setItem(dom, 1, "curr_code", currCode1);
setItem(dom, 1, "costing", Costing);
setItem(dom, 1, "pkg_size", pakSize);
setItem(dom, 1, "valid_upto", validUpto);
setItem(dom, 1, "delivery_date", deliveryDate);
setItem(dom, 1, "terms_condition", termsCondition);
rs.close();
rs = null;
pstmt.close();
......@@ -161,7 +171,6 @@ public class QuatationAmedmentIC extends ValidatorEJB{
}
break;
}
}
}
catch (Exception e)
......
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