Commit 34ee156a authored by wansari's avatar wansari

updated source for quantity parsing from Integer.parseInt to Double.parseDouble


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104348 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 28d16aa7
......@@ -2297,7 +2297,7 @@ public class SorderWizardEJB extends ValidatorEJB implements SorderWizardEJBLoca
}
catch(Exception ex)
{
System.out.println("Inside Catch getSorderDetails");
System.out.println("Inside Catch getSorderDetails"+ex.getMessage());
ex.printStackTrace();
}
finally
......@@ -3433,7 +3433,8 @@ public class SorderWizardEJB extends ValidatorEJB implements SorderWizardEJBLoca
return "";
}
if(!("").equalsIgnoreCase(quantity) && Integer.parseInt(quantity) > 0)
//if(!("").equalsIgnoreCase(quantity) && Integer.parseInt(quantity) > 0)
if(!("").equalsIgnoreCase(quantity) && Double.parseDouble(quantity) > 0)
{
//sql = "SELECT ITEM_CODE FROM SORDDET_TEMP WHERE SALE_ORDER = ? AND ITEM_CODE = ? ";
sql = "SELECT ITEM_CODE FROM SORDDET_TEMP WHERE SALE_ORDER = ? AND ITEM_CODE = ? AND TAB_NO = ?";
......@@ -3492,7 +3493,8 @@ public class SorderWizardEJB extends ValidatorEJB implements SorderWizardEJBLoca
pstmtSel.close();pstmtSel = null;
}
}
else if(("").equalsIgnoreCase(quantity) || Integer.parseInt(quantity) <= 0) // if Quantity is zero
//else if(("").equalsIgnoreCase(quantity) || Integer.parseInt(quantity) <= 0) // if Quantity is zero
else if(("").equalsIgnoreCase(quantity) || Double.parseDouble(quantity) <= 0) // if Quantity is zero
{
//sql = " DELETE FROM SORDDET_TEMP WHERE SALE_ORDER = ? AND ITEM_CODE = ? ";
sql = " DELETE FROM SORDDET_TEMP WHERE SALE_ORDER = ? AND ITEM_CODE = ? AND TAB_NO = ?";
......
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