From 35c3fd21e672f4c78dd71bdb4d219517bd2c22f8 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 19 Jul 2010 13:37:16 +0800 Subject: [PATCH] Fixed credit watch ratio calculation. --- base/src/org/compiere/model/MBPGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MBPGroup.java b/base/src/org/compiere/model/MBPGroup.java index 640a76b869..f95ce75d06 100644 --- a/base/src/org/compiere/model/MBPGroup.java +++ b/base/src/org/compiere/model/MBPGroup.java @@ -215,7 +215,7 @@ public class MBPGroup extends X_C_BP_Group public BigDecimal getCreditWatchRatio() { 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 new BigDecimal(0.90); } // getCreditWatchRatio