Fixed credit watch ratio calculation.
This commit is contained in:
parent
9e45f22001
commit
35c3fd21e6
|
@ -215,7 +215,7 @@ public class MBPGroup extends X_C_BP_Group
|
||||||
public BigDecimal getCreditWatchRatio()
|
public BigDecimal getCreditWatchRatio()
|
||||||
{
|
{
|
||||||
BigDecimal bd = super.getCreditWatchPercent();
|
BigDecimal bd = super.getCreditWatchPercent();
|
||||||
if (bd != Env.ZERO)
|
if (bd.compareTo(Env.ZERO) != 0)
|
||||||
return bd.divide(Env.ONEHUNDRED, 2, BigDecimal.ROUND_HALF_UP);
|
return bd.divide(Env.ONEHUNDRED, 2, BigDecimal.ROUND_HALF_UP);
|
||||||
return new BigDecimal(0.90);
|
return new BigDecimal(0.90);
|
||||||
} // getCreditWatchRatio
|
} // getCreditWatchRatio
|
||||||
|
|
Loading…
Reference in New Issue