Commit 3eecf28d authored by msharma's avatar msharma

Changed to transfer full quantity


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97026 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1703dfb4
......@@ -120,8 +120,8 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
noArt = Integer.parseInt(sNoArt);
dQuantity = Double.parseDouble(quantity);
System.out.println("manohar before 22/09/12 quantity ["+ quantity + "] noArt [" + noArt + "]" );
if (noArt > 0)
//Commented by manoj dtd 23/12/2014 not required as stock to be fully transferred
/*if (noArt > 0)
{
sql="select shipper_size from item_lot_packsize WHERE ITEM_CODE = ? AND LOT_NO__FROM <= ? AND LOT_NO__TO >= ? ";
pstmt =conn.prepareStatement(sql);
......@@ -155,7 +155,7 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
quantity = ("" + dQuantity).trim();
}
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 "
+ " WHERE ITEM_CODE = ? "
+ " AND SITE_CODE = ? "
......@@ -175,7 +175,7 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
noArt = rs.getInt(2);
}
}
//}
System.out.println("dQuantity::"+dQuantity+"noArt::"+noArt+"quantity::"+quantity);
System.out.println("lineNumber["+lineNo+"]");
//changed by sankara on 20/08/14 passed line no for multiple stock transfer
......
......@@ -1023,7 +1023,7 @@ public class StockTransferMultipleIC extends ValidatorEJB implements StockTransf
itemCode = genericUtility.getColumnValue("item_code", allDom, "3" );
siteCode = genericUtility.getColumnValue("site_code", allDom, "1" );
locCodeTo = checkNull(genericUtility.getColumnValue("loc_code__to", allDom, "3" ));
locCodeTo = checkNull(genericUtility.getColumnValue("loc_code__to", allDom, "4" ));// Changed by Manoj dtd 23/12/14 Get value from Detail4
lotNo = genericUtility.getColumnValue("lot_no__fr", allDom, "3" );
lpnNo = genericUtility.getColumnValue("lot_sl__fr", allDom, "3" );
locCode = genericUtility.getColumnValue("loc_code__fr", allDom, "2" );
......
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