Commit 9e2e02d5 authored by msharma's avatar msharma

Changes regarding stock transfer for input qty for stock_transfer_wiz


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97061 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dbce7432
...@@ -120,8 +120,8 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa ...@@ -120,8 +120,8 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
noArt = Integer.parseInt(sNoArt); noArt = Integer.parseInt(sNoArt);
dQuantity = Double.parseDouble(quantity); dQuantity = Double.parseDouble(quantity);
System.out.println("manohar before 22/09/12 quantity ["+ quantity + "] noArt [" + noArt + "]" ); System.out.println("manohar before 22/09/12 quantity ["+ quantity + "] noArt [" + noArt + "]" );
//Commented by manoj dtd 23/12/2014 not required as stock to be fully transferred
/*if (noArt > 0) if (noArt > 0)
{ {
sql="select shipper_size from item_lot_packsize WHERE ITEM_CODE = ? AND LOT_NO__FROM <= ? AND LOT_NO__TO >= ? "; sql="select shipper_size from item_lot_packsize WHERE ITEM_CODE = ? AND LOT_NO__FROM <= ? AND LOT_NO__TO >= ? ";
pstmt =conn.prepareStatement(sql); pstmt =conn.prepareStatement(sql);
...@@ -155,7 +155,7 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa ...@@ -155,7 +155,7 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
quantity = ("" + dQuantity).trim(); quantity = ("" + dQuantity).trim();
} }
else if (dQuantity == 0) else if (dQuantity == 0)
{*/ {
sql = "SELECT (quantity - case when alloc_qty is null then 0 else alloc_qty end) as quantity,no_art FROM stock " sql = "SELECT (quantity - case when alloc_qty is null then 0 else alloc_qty end) as quantity,no_art FROM stock "
+ " WHERE ITEM_CODE = ? " + " WHERE ITEM_CODE = ? "
+ " AND SITE_CODE = ? " + " AND SITE_CODE = ? "
...@@ -175,7 +175,7 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa ...@@ -175,7 +175,7 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
noArt = rs.getInt(2); noArt = rs.getInt(2);
} }
//} }
System.out.println("dQuantity::"+dQuantity+"noArt::"+noArt+"quantity::"+quantity); System.out.println("dQuantity::"+dQuantity+"noArt::"+noArt+"quantity::"+quantity);
System.out.println("lineNumber["+lineNo+"]"); System.out.println("lineNumber["+lineNo+"]");
lineNo=lineNo.trim(); lineNo=lineNo.trim();
......
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