BF [ 1810632 ] PricePrecision error in InfoProduct (and similar)

http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1810632&group_id=176962
This commit is contained in:
teo_sarca 2007-10-10 07:46:59 +00:00
parent 9b24f45163
commit da3979ec51
1 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,9 @@ import java.util.*;
* </pre>
* @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
* <li>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)