From f246a7c1367535827b2fe09d9732b78a33175aca Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Fri, 24 Apr 2009 13:41:27 +0000 Subject: [PATCH] AvoidDecimalLiteralsInBigDecimalConstructor https://sourceforge.net/tracker/?func=detail&aid=2780464&group_id=176962&atid=879332 --- base/src/org/compiere/acct/Doc_Order.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/acct/Doc_Order.java b/base/src/org/compiere/acct/Doc_Order.java index 322c9173a8..f1baabf72a 100644 --- a/base/src/org/compiere/acct/Doc_Order.java +++ b/base/src/org/compiere/acct/Doc_Order.java @@ -281,7 +281,7 @@ public class Doc_Order extends Doc */ public BigDecimal getBalance() { - BigDecimal retValue = new BigDecimal(0.0); + BigDecimal retValue = Env.ZERO; StringBuffer sb = new StringBuffer (" ["); // Total retValue = retValue.add(getAmount(Doc.AMTTYPE_Gross));