Commit 4dc5f4db authored by manohar's avatar manohar

one of the receipt weights are not properly set corrected


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91947 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 59f5eaf2
...@@ -536,12 +536,19 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote, ...@@ -536,12 +536,19 @@ public class ReplIssConf extends ActionHandlerEJB implements ReplIssConfRemote,
updateRowMap.put("lot_sl", lotSlNew);//added by akhilesh on 23/jun/2012 // 24/06/12 manoharan it should be lot_sl not lot_sl__new updateRowMap.put("lot_sl", lotSlNew);//added by akhilesh on 23/jun/2012 // 24/06/12 manoharan it should be lot_sl not lot_sl__new
updateRowMap.put("tran_type", "R");//Creating receipt updateRowMap.put("tran_type", "R");//Creating receipt
// 10/10/12 manoharan commented and new code added
//Changed by sumit on 27/09/12 start. ////Changed by sumit on 27/09/12 start.
shipperSize = (Double) itmVolumeMap.get("SHIPPER_SIZE"); //shipperSize = (Double) itmVolumeMap.get("SHIPPER_SIZE");
noArt = quantity/ shipperSize; //noArt = quantity/ shipperSize;
//updateRowMap.put("no_art", noArt);
////Changed by sumit on 27/09/12 end.
// 10/10/12 manoharan weight and no_art to be set properly
noArt = Math.floor((quantity) / shipperSize) ;
updateRowMap.put("no_art", noArt); updateRowMap.put("no_art", noArt);
//Changed by sumit on 27/09/12 end. updateRowMap.put("gross_weight", caseGrossWeight * noArt);
updateRowMap.put("net_weight", caseNetWeight * noArt);
updateRowMap.put("tare_weight", (caseGrossWeight - caseNetWeight) * noArt);
// end 10/10/12 manoharan
retString = stkUpdate.updateStock( updateRowMap, xtraParams, conn ); retString = stkUpdate.updateStock( updateRowMap, xtraParams, conn );
if ( retString != null && retString.trim().length() > 0 ) if ( retString != null && retString.trim().length() > 0 )
......
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