Commit ab36b45d authored by mjadhav's avatar mjadhav

add per quantity logic for fig_type


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97899 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f293f070
......@@ -582,23 +582,31 @@ public class MilestonePayGen
System.out.println("minAmt :"+minAmt);
System.out.println("maxAmt :"+maxAmt);
System.out.println("========Penalty amount calculation=======");
System.out.println("Purchase order :"+purcOrder);
System.out.println("relAmt :"+relAmt);
System.out.println("finChrge:"+finChrge);
if(fchgType.equalsIgnoreCase("P"))
{
amount=Double.parseDouble(relAmt);
System.out.println("Formula :pentlyAmt=(finChrge * amount)/100;");
pentlyAmt=(finChrge * amount)/100;//finChrge conside as percentage
System.out.println("Calculated pentlyAmt :"+pentlyAmt);
}
else if(fchgType.equalsIgnoreCase("Q"))
{
System.out.println("Formula :pentlyAmt=finChrge * amount");
amount=Double.parseDouble(relAmt);
pentlyAmt=finChrge * amount;//finChrge conside as Quantity
}
else
{
System.out.println("Formula:pentlyAmt=finChrge;");
System.out.println("Formula :pentlyAmt=finChrge");
pentlyAmt=finChrge;//finChrge conside as fixed amount
}
System.out.println("calculate penalaty amount :"+pentlyAmt);
if(pentlyAmt > maxAmt)
{
......@@ -610,7 +618,7 @@ public class MilestonePayGen
}
flag=true;
System.out.println("pentlyAmt :"+pentlyAmt);
System.out.println("selected pentlyAmt from min to max amount:"+pentlyAmt);
}
else
{
......
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