Fixed credit watch ratio calculation.

This commit is contained in:
Heng Sin Low 2010-07-19 13:37:16 +08:00
parent 9e45f22001
commit 35c3fd21e6
1 changed files with 1 additions and 1 deletions

View File

@ -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