Commit ab1c74d8 authored by dsawant's avatar dsawant

updated for quantity validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96276 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b05728d6
......@@ -525,7 +525,7 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
else
{
sql = "select ALLOC_QTY from stock WHERE site_code = ? AND LOT_SL = ? AND QUANTITY > 0";
/*sql = "select ALLOC_QTY from stock WHERE site_code = ? AND LOT_SL = ? AND QUANTITY > 0";
pstmt= conn.prepareStatement(sql);
//System.out.println("Second sql ["+sql + "]");
pstmt.setString( 1, siteCode);
......@@ -538,9 +538,9 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
rs.close();
rs = null;
pstmt.close();
pstmt = null;
pstmt = null;*/
if(allQty == quantity)
if(quantity <= 0)
{
errCode = "DIDOQUALSM";
errString = getErrorString("quantity",errCode,userId);
......
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