Commit 383d1bb8 authored by ssalve's avatar ssalve

Sarita: Removed rounoff for allocUnit on 24MAY2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185416 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b808322c
......@@ -1485,7 +1485,8 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote
percentage = Double.parseDouble((String)cctrDataMap.get("alloc_perc"));
System.out.println("Allocation Percentage ::::"+percentage);
System.out.println("Current Allocation % ["+percentage+"totUnit["+totUnit+"]["+(totUnit*percentage)/100+"]");
allocUnit = Math.round(((totUnit*percentage)/100)); //Round function should be taken from finCommon
//allocUnit = Math.round(((totUnit*percentage)/100)); //Round function should be taken from finCommon
allocUnit = ((totUnit*percentage)/100); //Added by sarita on 24 MAY 2018 to remove roundoff
System.out.println("allocUnit:::"+allocUnit);
//allocUnit = finCommon.getRequiredDecimal(allocUnit,2);
System.out.println("allocUnit:::123"+allocUnit);
......@@ -1498,7 +1499,8 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote
System.out.println("cctrDataMap :::::::["+cctrDataMap+"]");
System.out.println("cctrDataMap.get(alloc_perc) ::"+cctrDataMap.get("alloc_perc"));
allocPerc = Double.parseDouble((String)cctrDataMap.get("alloc_perc"));
allocUnit = Math.round(((totUnit*allocPerc)/100));
//allocUnit = Math.round(((totUnit*allocPerc)/100)); //Added by sarita on 24 MAY 2018 to remove roundoff
allocUnit = ((totUnit*percentage)/100);
System.out.println("allocUnit:::"+allocUnit);
//percentage = Double.parseDouble((String)cctrDataMap.get("alloc_perc"));
valueXmlString.append("<allocation><![CDATA[" ).append(allocPerc ).append( "]]></allocation>\r\n" );
......
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