Commit 2d2686e5 authored by dpawar's avatar dpawar

remove trim lotno ,lot sl changed as per Pregyan


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96778 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c19831d1
......@@ -736,11 +736,29 @@ public class StockUpdate
mamount = this.quantity * this.rate;
count=0;
// *********xxxxxxxxxxxxxxxx********************
sql = "select count(*) from stock where item_code ='"+this.itemCode.trim()+"'"
//Changed by Pragyan for remove trim [START]
/*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.trim()+"'"
+" and lot_sl = '"+this.lotSl.trim()+"'";
+" and lot_sl = '"+this.lotSl.trim()+"'";*/
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()+"'"
+" and site_code ='"+this.siteCode.trim()+"'"
+" and loc_code = '"+this.locationCode.trim()+"'"
+" and lot_no = '"+this.lotNo+"'"
+" and lot_sl = '"+this.lotSl+"'";
//Changed by Pragyan for remove trim [END]
System.out.println("Query :::- ["+sql+"]");
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
......
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