From da3979ec513b29167603a5a9817f652981a41bf8 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Wed, 10 Oct 2007 07:46:59 +0000 Subject: [PATCH] BF [ 1810632 ] PricePrecision error in InfoProduct (and similar) http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1810632&group_id=176962 --- base/src/org/compiere/util/DisplayType.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/util/DisplayType.java b/base/src/org/compiere/util/DisplayType.java index aecc8808bd..073e73f4b7 100644 --- a/base/src/org/compiere/util/DisplayType.java +++ b/base/src/org/compiere/util/DisplayType.java @@ -26,6 +26,9 @@ import java.util.*; * * @author Jorg Janke * @version $Id: DisplayType.java,v 1.6 2006/08/30 20:30:44 comdivision Exp $ + * + * @author Teo Sarca, SC ARHIPAC SERVICE SRL + *
  • BF [ 1810632 ] PricePrecision error in InfoProduct (and similar) */ public final class DisplayType { @@ -260,7 +263,7 @@ public final class DisplayType else if (displayType == Amount) { format.setMaximumIntegerDigits(MAX_DIGITS); - format.setMaximumFractionDigits(AMOUNT_FRACTION); + format.setMaximumFractionDigits(MAX_FRACTION); format.setMinimumFractionDigits(AMOUNT_FRACTION); } else if (displayType == CostPrice)