Commit 6808d212 authored by ssalve's avatar ssalve

Sarita : Done changes on 21 DEC 2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194798 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 94ec2b9a
......@@ -1891,9 +1891,14 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote
public double setUnitAllocationValue(double totUnit,double allocation_perc )
{
FinCommon finCommon = new FinCommon();//Added by sarita on 14 DECEMBER 2018
double unitAlloc=0;
System.out.println("totUnit :: ["+totUnit+"]" + "allocation_perc :: ["+allocation_perc+"]");
unitAlloc = Math.round(((totUnit*allocation_perc)/100));
//Commented and Added by sarita on 14 DECEMBER 2018 [START]
//unitAlloc = Math.round(((totUnit*allocation_perc)/100));
unitAlloc = ((totUnit*allocation_perc)/100);
unitAlloc = finCommon.getRequiredDecimal(unitAlloc, 2);
//Commented and Added by sarita on 14 DECEMBER 2018 [END]
System.out.println("Value of unitAlloc:::"+unitAlloc);
return unitAlloc;
}//end of method setUnitAllocationValue
......
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