Commit 5411830e authored by ppatro's avatar ppatro

fixing the bug for porcp wiz


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97121 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b3f3db2b
...@@ -310,13 +310,20 @@ public class PoRcpPos extends ValidatorEJB implements PoRcpPosLocal, PoRcpPosRem ...@@ -310,13 +310,20 @@ public class PoRcpPos extends ValidatorEJB implements PoRcpPosLocal, PoRcpPosRem
rcpgrossWeight=grossWeight*noArt; rcpgrossWeight=grossWeight*noArt;
rcpnetWeight=netWeight*noArt; rcpnetWeight=netWeight*noArt;
grossWeight=0; //Changed By Pragyan in case of Quantity it is not updating net weight and gross weight
netWeight=0; /* grossWeight=0;
netWeight=0;*/
//Changed by Rohan on 26-02-13 for 26-02-13 for considering gross weight,net weight of item master if quantity < shipper Size //Changed by Rohan on 26-02-13 for 26-02-13 for considering gross weight,net weight of item master if quantity < shipper Size
//Changed by Rohan on 27-02-13 for bug fixing //Changed by Rohan on 27-02-13 for bug fixing
//if(sumQty < shipperSize) //if(sumQty < shipperSize)
System.out.println("Current grossweight ["+grossWeight+"netWeight["+netWeight+"]shipperSize["+shipperSize+"]");
if(quantity < shipperSize) if(quantity < shipperSize)
{ {
grossWeight=0;
netWeight=0;
noArt = 1; noArt = 1;
sql="select gross_weight,net_weight from item where item_code=?"; sql="select gross_weight,net_weight from item where item_code=?";
...@@ -332,7 +339,7 @@ public class PoRcpPos extends ValidatorEJB implements PoRcpPosLocal, PoRcpPosRem ...@@ -332,7 +339,7 @@ public class PoRcpPos extends ValidatorEJB implements PoRcpPosLocal, PoRcpPosRem
rs=null; rs=null;
pstmt.close(); pstmt.close();
pstmt=null; pstmt=null;
System.out.println("Inside Item Current grossweight ["+grossWeight+"netWeight["+netWeight+"]quantity ["+quantity+"]");
//Changed by Rohan on 28-02-13 for bug fixing of calculation of weights.start //Changed by Rohan on 28-02-13 for bug fixing of calculation of weights.start
rcpgrossWeight = grossWeight*quantity; rcpgrossWeight = grossWeight*quantity;
rcpnetWeight = netWeight*quantity; rcpnetWeight = netWeight*quantity;
...@@ -344,6 +351,7 @@ public class PoRcpPos extends ValidatorEJB implements PoRcpPosLocal, PoRcpPosRem ...@@ -344,6 +351,7 @@ public class PoRcpPos extends ValidatorEJB implements PoRcpPosLocal, PoRcpPosRem
{ {
if(noArt == 0 && quantity > 0 && shipperSize > 0) if(noArt == 0 && quantity > 0 && shipperSize > 0)
{ {
System.out.println("Inside Quantity Current grossweight ["+grossWeight+"netWeight["+netWeight+"]quantity ["+quantity+"]noArt["+noArt+"]");
noArt = (new Double (Math.floor((quantity/shipperSize)))).intValue();; noArt = (new Double (Math.floor((quantity/shipperSize)))).intValue();;
rcpgrossWeight= grossWeight* noArt; rcpgrossWeight= grossWeight* noArt;
rcpnetWeight = netWeight * noArt; rcpnetWeight = netWeight * noArt;
......
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