Commit 438d762c authored by caluka's avatar caluka

Shipper size is less than zero than qty_per_art in stock is taken


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97134 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 97cd934b
...@@ -137,6 +137,28 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa ...@@ -137,6 +137,28 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
pstmt.close(); pstmt.close();
rs=null; rs=null;
pstmt =null; pstmt =null;
//start added by chandrashekar on 16-jan-2014
System.out.println("shipperSize>>>>"+shipperSize);
if(shipperSize <=0 )
{
sql="select qty_per_art from stock where site_code=? and item_code=? and lot_no=? and lot_sl=? and loc_code=? ";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,siteCode);
pstmt.setString(2,itemCode);
pstmt.setString(3,lotNo);
pstmt.setString(4,lotSl);
pstmt.setString(5,locCode);
rs=pstmt.executeQuery();
if(rs.next())
{
shipperSize=rs.getDouble(1);
}
rs.close();
rs=null;
pstmt.close();
pstmt=null;
}
//End added by chandrashekar on 16-jan-2014
//Changed By Pragyan 05/03/12 to get the quantity less then shipper and not zero //Changed By Pragyan 05/03/12 to get the quantity less then shipper and not zero
//Changed by Rohan on 04-03-12 if quantity less than shipper size then set dQuantity as quantity.start //Changed by Rohan on 04-03-12 if quantity less than shipper size then set dQuantity as quantity.start
//dQuantity = (noArt * shipperSize); //dQuantity = (noArt * shipperSize);
......
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