Commit bf40c8f0 authored by dpawar's avatar dpawar

add condition when lot_no and lotSl is blank


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97419 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6709bc11
...@@ -761,12 +761,28 @@ public class StockUpdate ...@@ -761,12 +761,28 @@ public class StockUpdate
mamount = this.quantity * this.rate; mamount = this.quantity * this.rate;
count=0; count=0;
// *********xxxxxxxxxxxxxxxx******************** // *********xxxxxxxxxxxxxxxx********************
//changes by Dadaso pawar on 25/02/15 [start] (Pragyan sir suggestion)
if(this.lotNo == null || this.lotNo.trim().length() == 0)
{
this.lotNo =" ";
}
if(this.lotSl == null || this.lotSl.trim().length()==0)
{
this.lotSl = " ";
}
sql = "select count(*) from stock where item_code ='"+this.itemCode.trim()+"'" sql = "select count(*) from stock where item_code ='"+this.itemCode.trim()+"'"
+" and site_code ='"+this.siteCode.trim()+"'"
+" and loc_code = '"+this.locationCode.trim()+"'"
+" and lot_no = '"+this.lotNo+"'"
+" and lot_sl = '"+this.lotSl+"'";
/*sql = "select count(*) from stock where item_code ='"+this.itemCode.trim()+"'"
+" and site_code ='"+this.siteCode.trim()+"'" +" and site_code ='"+this.siteCode.trim()+"'"
+" and loc_code = '"+this.locationCode.trim()+"'" +" and loc_code = '"+this.locationCode.trim()+"'"
+" and lot_no = '"+this.lotNo.trim()+"'" +" and lot_no = '"+this.lotNo.trim()+"'"
+" and lot_sl = '"+this.lotSl.trim()+"'"; +" and lot_sl = '"+this.lotSl.trim()+"'";*/
System.out.println("Query :::- ["+sql+"]");
//changes by Dadaso pawar on 25/02/15 [End]
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
......
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