Commit 8cf536ae authored by ppatro's avatar ppatro

Changed By Pragyan 05/03/12 to get the quantity less then shipper and not zero


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92803 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 77ba9b7f
...@@ -71,7 +71,7 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa ...@@ -71,7 +71,7 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
DistStkUpdLocal distStkUpd = null; DistStkUpdLocal distStkUpd = null;
NodeList hdrDom = null; NodeList hdrDom = null;
Node currDetail = null; Node currDetail = null;
double dQuantity = 0, shipperSize = 0; double dQuantity = 0, shipperSize = 0, stkQty = 0;
String sNoArt = "0"; String sNoArt = "0";
int noArt = 0; int noArt = 0;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
...@@ -102,8 +102,10 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa ...@@ -102,8 +102,10 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
quantity = GenericUtility.getInstance().getColumnValueFromNode("quantity",currDetail); quantity = GenericUtility.getInstance().getColumnValueFromNode("quantity",currDetail);
lineNo = GenericUtility.getInstance().getColumnValueFromNode("line_no",currDetail); lineNo = GenericUtility.getInstance().getColumnValueFromNode("line_no",currDetail);
sNoArt = GenericUtility.getInstance().getColumnValueFromNode("no_art",currDetail); sNoArt = GenericUtility.getInstance().getColumnValueFromNode("no_art",currDetail);
//Changed By Pragyan 05/03/12 to get the quantity inputs
System.out.println("lineNo :"+lineNo+" itemCode :"+itemCode+" locCodeFr :"+locCode+" lotNoFr :"+lotNo+" lotSlFr :"+lotSl+" quantity :"+quantity); stkQty = Double.parseDouble(checkNull(quantity))
System.out.println("lineNo :"+lineNo+" itemCode :"+itemCode+" locCodeFr :"+locCode+" lotNoFr :"+lotNo+" lotSlFr :"+lotSl+" quantity :"+stkQty);
String stlOption = chkStockOption(itemCode, siteCode); String stlOption = chkStockOption(itemCode, siteCode);
if (!stlOption.equals("0")) if (!stlOption.equals("0"))
{ {
...@@ -135,10 +137,12 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa ...@@ -135,10 +137,12 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
pstmt.close(); pstmt.close();
rs=null; rs=null;
pstmt =null; pstmt =null;
//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);
System.out.println("quantity>>"+quantity+"shipperSize>>"+shipperSize); System.out.println("quantity>>"+stkQty+"shipperSize>>"+shipperSize);
if(Double.parseDouble(quantity) < shipperSize) //if(Double.parseDouble(quantity) > < shipperSize)
if(stkQty > 0 && stkQty < shipperSize)
{ {
dQuantity = Double.parseDouble(quantity); dQuantity = Double.parseDouble(quantity);
} }
...@@ -361,4 +365,14 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa ...@@ -361,4 +365,14 @@ public class StockTransferCalPos extends ValidatorEJB implements StockTransferCa
} }
return comp; return comp;
} }
//Changed By Pragyan 05/03/13 To check set the valu if null.start
private String checkNull( String inputVal )
{
if ( inputVal == null )
{
inputVal = "";
}
return inputVal;
}
//Changed By Pragyan 05/03/13 To check set the valu if null.end
} }
\ No newline at end of file
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