Commit b2cdebec authored by pdas's avatar pdas

CHANGES FOR DATA TYPE DOUBLE IN MIN QTY,MAX QTY AND RATE


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98036 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3e493bf9
......@@ -107,18 +107,18 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P
String effFromStr = "";
String minRateStr = "";
String maxRateStr = "";
int maxRate=0;
double maxRate=0;
String rateStr = "";
int rate = 0;
int minRate = 0;
double rate = 0;
double minRate = 0;
String unit ="";
int ctr = 0;
int count = 0;
int currentFormNo = 0;
int minQty = 0;
double minQty = 0;
String minQtyStr = "";
String maxQtyStr = "";
int maxQty = 0;
double maxQty = 0;
int childNodeListLength;
StringBuffer valueXmlString = new StringBuffer();
ArrayList<String> errList = new ArrayList();
......@@ -405,8 +405,8 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P
if((minQtyStr.trim().length() > 0||minQtyStr !=null )&& (maxQtyStr.trim().length() >0 ||maxQtyStr != null ))
{
minQty = Integer.parseInt(minQtyStr.trim());
maxQty = Integer.parseInt(maxQtyStr.trim());
minQty = Double.parseDouble(minQtyStr.trim());
maxQty = Double.parseDouble(maxQtyStr.trim());
if (maxQty < minQty) {
errCode = "VMMINQTY";
errList.add(errCode);
......@@ -423,9 +423,9 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P
rateStr = genericUtility.getColumnValue("rate", dom);
if((minRateStr.trim().length() > 0||minRateStr !=null )&& (rateStr.trim().length() >0 ||rateStr != null )&&(maxRateStr.trim().length() > 0||maxRateStr !=null ))
{
minRate = Integer.parseInt(minRateStr);
rate = Integer.parseInt(rateStr);
maxRate = Integer.parseInt(maxRateStr);
minRate = Double.parseDouble(minRateStr);
rate = Double.parseDouble(rateStr);
maxRate = Double.parseDouble(maxRateStr);
if(rate<0)
{
errCode = "VTSUBCRATE";
......@@ -605,7 +605,7 @@ public class PriceListGenIC extends ValidatorEJB implements PriceListGenLocal, P
String calcMethodDescr = "";
String rateStr = "";
String rateNo = "";
int rate = 0;
double rate = 0;
String columnValue = "";
String priceList = "";
String unit = "";
......
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